mod anonymous;
mod builders;
mod error;
mod graph;
mod predicate;
#[cfg(test)]
mod tests;
mod traversal;
mod types;
pub use anonymous::AnonymousFactory;
pub use builders::{GroupBuilder, GroupCountBuilder, OrderBuilder, ProjectBuilder, RepeatBuilder};
pub use graph::Graph;
pub use predicate::P;
pub use traversal::Traversal;
use wasm_bindgen::prelude::*;
#[wasm_bindgen(typescript_custom_section)]
const TS_TYPES: &'static str = r#"
/**
* A property value type.
*
* Note: Integers use `bigint` for 64-bit precision.
*/
export type Value = null | boolean | bigint | number | string | Value[] | Record<string, Value>;
/**
* A vertex (node) in the graph.
*/
export interface Vertex {
/** Unique vertex identifier */
readonly id: bigint;
/** Vertex label (e.g., 'person', 'product') */
readonly label: string;
/** Vertex properties */
readonly properties: Record<string, Value>;
}
/**
* An edge (relationship) between two vertices.
*/
export interface Edge {
/** Unique edge identifier */
readonly id: bigint;
/** Edge label (e.g., 'knows', 'purchased') */
readonly label: string;
/** Source vertex ID */
readonly from: bigint;
/** Target vertex ID */
readonly to: bigint;
/** Edge properties */
readonly properties: Record<string, Value>;
}
/**
* Result of a GraphSON import operation.
*/
export interface GraphSONImportResult {
verticesImported: bigint;
edgesImported: bigint;
warnings: string[];
}
"#;
#[wasm_bindgen(start)]
pub fn start() {
}