import { CompanyBrainGovernedWriteAttempt, type CompanyBrainGovernedWriteReceipt as CompanyBrainGovernedWriteReceiptType, type CompanyBrainGovernedWriteRequest as CompanyBrainGovernedWriteRequestType } from "@opengeni/contracts"; import type { Database } from "./database.js"; export declare class CompanyBrainGovernedWriteAuthorityError extends Error { readonly name = "CompanyBrainGovernedWriteAuthorityError"; } export declare class CompanyBrainGovernedWriteInvalidOperationError extends Error { readonly name = "CompanyBrainGovernedWriteInvalidOperationError"; } /** * Route one explicit workspace-local proposal. This owns write admission only; * selector snapshots, logical-turn receipts, tools, and activation remain out of scope. */ /** * Write result: the agent-facing receipt plus the exact initiating human the * accepted attempt froze. The subject id is internal routing authority for the * governed-learning evaluator/controller and is stripped from public receipts. */ export type CompanyBrainGovernedWriteResult = CompanyBrainGovernedWriteReceiptType & { initiatingHumanSubjectId: string; }; export declare function writeCompanyBrainGovernedProposal(db: Database, rawInput: { attempt: CompanyBrainGovernedWriteAttempt; request: CompanyBrainGovernedWriteRequestType; }): Promise;