import { type DeliveryContract, type InitiativeExportSnapshot, type InitiativeRecordEntity, type InitiativeResumeResponse, type LifecycleResumeBlock, type MethodDeclaration } from '@zhixuan92/multi-model-agent-core'; export declare class InitiativeRecordRuntime { private readonly store; private closed; private constructor(); /** Resolves `initiatives.db` below the server state directory and opens * (creating or migrating) the dedicated Initiative store — never touches * `executions.db`. */ static open(opts: { stateDir: string; }): InitiativeRecordRuntime; /** Closes the store's own connection. Idempotent — safe to call more than once. */ close(): void; /** * Validates `rawRequest` against the frozen operation envelope and * dispatches every operation except the three dedicated reads — * `initiative_resume` (use {@link initiativeResume}), * `initiative_gate_status` (use {@link initiativeGateStatus}), and * `initiative_export` (use {@link initiativeExport}) — each of * which is a server-side assembly of several joined store reads rather * than a single store call: mutating operations go through the store's * single transactional `execute()`; read operations call the matching * one-per-operation store method. Throws `invalid_request` before any * store call for a malformed body, an unknown operation, or a request * naming one of the two dedicated reads. Every other typed error * (`not_found`, `revision_conflict`, `cross_product_workspace_link`, and — * for the Phase A1 operations added by SPEC-002 — * `cross_initiative_evidence_link` and `cross_initiative_verification`) * passes through unchanged from the store. */ execute(rawRequest: unknown): InitiativeRecordEntity | InitiativeRecordEntity[] | MethodDeclaration | MethodDeclaration[] | DeliveryContract | DeliveryContract[]; /** * Assembles the complete pinned `InitiativeResumeResponse` in one call * (FR-13): resolves the Initiative by `uuid` or `human_key`, then its * Product, linked Workspaces (each with its Resources), related * Initiatives, Tasks, ArtifactRefs, and the newest `event_limit` Events * (default 20, valid range 1-100), plus the pinned `counts` block. Throws * `invalid_request` for a malformed request (including an `event_limit` * outside 1-100) before any store call; throws `not_found` for an unknown * Initiative, Product, linked Workspace, or related Initiative. */ initiativeResume(rawRequest: unknown): InitiativeResumeResponse; /** * `initiative_gate_status` (Task I-4, SPEC-004 FR-9): the dedicated * read-only lifecycle method, outside the mutation dispatcher exactly like * {@link initiativeResume}. Validates `rawRequest` against the Task I-1 * strict `initiativeGateStatusInputSchema` (a bare Initiative lookup — no * mutation controls, no caller provenance, no caller-selected event * limit), then returns the SAME `LifecycleResumeBlock` `initiativeResume` * embeds, assembled by the store's one shared read helper. Throws * `invalid_request` for a malformed lookup before any store call; throws * `not_found` for an unknown Initiative. Performs no write. */ initiativeGateStatus(rawRequest: unknown): LifecycleResumeBlock; /** * `initiative_export` (MMA Next gap-closure, §15, §21 success criterion 12): the third * dedicated read, alongside `initiativeResume` and `initiativeGateStatus` above — a * server-side assembly of several joined store reads, never a single store call. Assembles * the complete, self-contained portable `InitiativeExportSnapshot` for one Initiative: throws * `invalid_request` for a malformed lookup before any store call, `not_found` for an unknown * Initiative. Performs no write. */ initiativeExport(rawRequest: unknown): InitiativeExportSnapshot; } //# sourceMappingURL=initiative-record-runtime.d.ts.map