/** * The Node class represents a node in the graph */ export declare class GraphNode { /** The node identifier */ readonly id: string; constructor(id: string); toString(): string; } /** * The Edge class represents an edge in the graph */ export declare class GraphEdge { /** The edge identifier */ readonly id: string; constructor(id: string); toString(): string; } export declare class GraphAnon { /** The anonymous node identifier */ readonly id: string; constructor(id: string); toString(): string; } export declare class SimpleDate { readonly year: number; readonly month: number; readonly day: number; readonly tzMinuteOffset: number; constructor(year: number, month: number, day: number, tzMinuteOffset: number); toString(): string; } export declare class Time { readonly hour: number; readonly minute: number; readonly second: number; readonly tzMinuteOffset: number; constructor(hour: number, minute: number, second: number, tzMinuteOffset: number); toString(): string; } export declare class DateTime { readonly year: number; readonly month: number; readonly day: number; readonly hour: number; readonly minute: number; readonly second: number; readonly tzMinuteOffset: number; constructor(year: number, month: number, day: number, hour: number, minute: number, second: number, tzMinuteOffset: number); toString(): string; } /** * The Decimal class represents an arbitrary-precision decimal. * TODO: Implement arithmetic operations */ export declare class Decimal { /** The string representation of the decimal */ readonly str: string; constructor(str: string); toString(): string; } export type Direction = 'left' | 'right' | 'undirected'; /** * The GraphPathSegment class represents a segment in the path */ export declare class GraphPathSegment { /** The node from which the segment starts */ readonly from: any; /** The node to which the segment ends */ readonly to: any; /** The type of the segment */ readonly type: any; /** The direction of the segment */ readonly direction: Direction; constructor(from: any, to: any, type: any, direction: Direction); } export declare class GraphPath { /** The start node of the path */ readonly start: any; /** The end node of the path */ readonly end: any; /** The segments in the path */ readonly segments: Array; /** The number of segments in the path */ readonly length: number; constructor(start: any, end: any, segments: Array); } export declare class IRI { /** The string representation of the IRI */ readonly iri: string; constructor(iri: string); toString(): string; } export declare class StringLang { /** The literal string */ readonly str: string; /** The language tag */ readonly lang: string; constructor(str: string, lang: string); toString(): string; } export declare class StringDatatype { /** The literal string */ readonly str: string; /** The IRI of the datatype */ readonly datatype: IRI; constructor(str: string, datatype: string); toString(): string; }