/** * Engine-neutral graph shapes — the mirror of the relational DatabaseResult. * * GraphNode / GraphEdge are the portable node/edge core the unified surface * returns; GraphResult is the raw-query result (records + columns), the same * shape as `DatabaseResult`, so a graph read feels exactly like a SQL read. * See tina4-documentation/plan/v3/decisions/ADR-0059.md and features/139. */ /** Engine-neutral vertex: id, labels, properties. */ export declare class GraphNode { readonly id: string; readonly labels: string[]; readonly properties: Record; constructor(id: string, labels?: string[] | null | undefined, properties?: Record | null | undefined); toDict(): Record; } /** Engine-neutral edge: id, type, from/to node ids, properties. */ export declare class GraphEdge { readonly id: string; readonly type: string; readonly from: string; readonly to: string; readonly properties: Record; constructor(id: string, type: string, from: string, to: string, properties?: Record | null | undefined); toDict(): Record; } /** A raw-query result — records + columns, same shape as DatabaseResult. */ export declare class GraphResult implements Iterable> { readonly records: Record[]; readonly columns: string[]; constructor(records?: Record[] | null | undefined, columns?: string[] | null | undefined); toArray(): Record[]; /** The first value of the first record, or null. */ scalar(): unknown; [Symbol.iterator](): Iterator>; get length(): number; }