import type { GraphDocument, Node, Edge, TypeDefinition, SubgraphDefinition } from "./types"; export interface CrudOptions { /** * When true, mutations are applied to the passed-in object. * When false (default), a shallow-cloned document is returned. */ mutate?: boolean; } export declare function getNode(doc: GraphDocument, nodeId: string): Node | undefined; export declare function addNode(doc: GraphDocument, node: Node, options?: CrudOptions): GraphDocument; export declare function updateNode(doc: GraphDocument, nodeId: string, patch: Partial, options?: CrudOptions): GraphDocument; export declare function removeNode(doc: GraphDocument, nodeId: string, options?: CrudOptions): GraphDocument; export declare function getEdge(doc: GraphDocument, edgeId: string): Edge | undefined; export declare function addEdge(doc: GraphDocument, edge: Edge, options?: CrudOptions): GraphDocument; export declare function updateEdge(doc: GraphDocument, edgeId: string, patch: Partial, options?: CrudOptions): GraphDocument; export declare function removeEdge(doc: GraphDocument, edgeId: string, options?: CrudOptions): GraphDocument; export declare function getType(doc: GraphDocument, typeId: string): TypeDefinition | undefined; export declare function addType(doc: GraphDocument, typeDef: TypeDefinition, options?: CrudOptions): GraphDocument; export declare function updateType(doc: GraphDocument, typeId: string, patch: Partial, options?: CrudOptions): GraphDocument; export declare function removeType(doc: GraphDocument, typeId: string, options?: CrudOptions): GraphDocument; export declare function getSubgraph(doc: GraphDocument, subgraphId: string): SubgraphDefinition | undefined; export declare function addSubgraph(doc: GraphDocument, subgraph: SubgraphDefinition, options?: CrudOptions): GraphDocument; export declare function updateSubgraph(doc: GraphDocument, subgraphId: string, patch: Partial, options?: CrudOptions): GraphDocument; export declare function removeSubgraph(doc: GraphDocument, subgraphId: string, options?: CrudOptions): GraphDocument; //# sourceMappingURL=crud.d.ts.map