/** * Base error class for all OGM errors. * Provides consistent error identification across the package. */ export declare class OGMError extends Error { constructor(message: string); } /** * Thrown by `cloneSubgraph` / `deleteSubgraph` when an APOC subgraph operation fails. * Wraps the underlying Neo4j/APOC error with operation context. */ export declare class SubgraphOperationError extends OGMError { readonly operation: 'clone' | 'delete'; readonly rootId: string; readonly cause?: Error; constructor(operation: 'clone' | 'delete', rootId: string, message: string, cause?: Error); } /** * Thrown by `findFirstOrThrow` / `findUniqueOrThrow` when no matching record exists. */ export declare class RecordNotFoundError extends OGMError { /** The model (node type) that was queried */ readonly model: string; /** The where clause that produced zero results */ readonly where: Record | undefined; constructor(model: string, where?: Record); } //# sourceMappingURL=errors.d.ts.map