/* tslint:disable */ /* eslint-disable */ /* auto-generated by NAPI-RS */ export declare class NedbCore { /** Create an in-memory v2 DAG database — zero disk I/O. */ constructor() /** * Open a durable v2 DAG database at `path`. * Automatically migrates v1 AOF → v2 DAG on first open. */ static open(path: string): NedbCore createIndex(coll: string, field: string, kind: string): void /** Put a document. Returns the stored doc as a JSON string. */ put(coll: string, id: string, docJson: string): string /** Full put with optional client / nonce — API compat, v2 ignores these. */ putEx(coll: string, id: string, docJson: string, client?: string | undefined | null, nonce?: bigint | undefined | null, idem?: string | undefined | null): string delete(coll: string, id: string): void deleteEx(coll: string, id: string, client?: string | undefined | null, nonce?: bigint | undefined | null, idem?: string | undefined | null): void /** Link: stored as a doc in __links__ collection for NQL traversal. */ link(frm: string, rel: string, to: string): void unlink(frm: string, rel: string, to: string): void get(coll: string, id: string): string | null getAsOf(coll: string, id: string, asOf: bigint): string | null query(nqlStr: string): Array neighbors(frm: string, rel: string): Array neighborsAsOf(frm: string, rel: string, asOf: bigint): Array inbound(to: string, rel: string): Array inboundAsOf(to: string, rel: string, asOf: bigint): Array verify(): boolean head(): string seq(): bigint /** Flush WAL and MANIFEST — v2 equivalent of v1 flush(). */ flush(): void }