import { e as GraphDef, f as SchemaVersionRow, g as GraphBackend } from './types-BynPp5kU.js'; import { n as ReconciledSchema } from './store-C8ZPl7OW.js'; /** A locally held handle for a durable server-side graph template. */ type GraphTemplate = Readonly<{ id: string; reconciled: ReconciledSchema; schemaHash: string; }>; type InstantiateGraphTemplateResult = Readonly<{ status: "ready"; reconciled: ReconciledSchema; schema: SchemaVersionRow; }>; /** * Registers the fully materialized shape of a verified store as a durable * template. The original schema version is retained only as snapshot * provenance: every instantiated graph starts at v1 with that final shape. */ declare function registerGraphTemplate(backend: GraphBackend, params: Readonly<{ templateId: string; reconciled: ReconciledSchema; }>): Promise>; /** * Instantiates the template's final graph shape as target schema v1. Only the * target hash crosses the wire; the durable source document stays in the * backend template registry and is rebound to `graphId` by one SQL statement. */ declare function instantiateGraphTemplate(backend: GraphBackend, params: Readonly<{ template: GraphTemplate; graphId: string; }>): Promise>; /** Short public name for {@link instantiateGraphTemplate}. */ declare function instantiateGraph(backend: GraphBackend, params: Readonly<{ template: GraphTemplate; graphId: string; }>): Promise>; export { type GraphTemplate as G, type InstantiateGraphTemplateResult as I, instantiateGraphTemplate as a, instantiateGraph as i, registerGraphTemplate as r };