/** * Graph endpoints — create and list graphs. * * Plain functions over a {@link ClientCore}; the `LocusGraphClient` facade in * `client.ts` delegates to them (so the public API stays flat). See the README * for usage. */ import type { ClientCore } from "../core"; import type { CreateGraphResponse, GraphListResponse, PaginationOptions, TransactionOperation, TransactionResponse } from "../types"; /** Create a new graph (POST /v1/graphs). Requires an unscoped agent secret. */ export declare function createGraph(core: ClientCore, name: string, description?: string): Promise; /** List graphs the authenticated agent has access to (GET /v1/graphs). */ export declare function listGraphs(core: ClientCore, options?: PaginationOptions): Promise; /** * Apply mixed store / delete / unlink operations as ONE transaction * (POST /v1/graphs/{graph_id}/transaction). All of it lands or none of it does. * * Use this where a multi-step edit must not half-apply — merging two contexts * is store the survivor, delete the absorbed one, unlink what pointed at it. * For bulk writes use `storeEventsBatch`, which is not atomic but takes 1000 * events; a transaction is capped by the statements it needs (roughly a dozen * events), and a batch needing more is refused rather than split. * * A rejected operation returns 400 naming its index and writes nothing, so * there is no per-item error to inspect. */ export declare function transaction(core: ClientCore, operations: TransactionOperation[], graphId?: string): Promise;