import type { SpaceWorkbookProposal } from '@xopcai/gateway-contract'; import type { WorkbookEdit } from './workbook-engine.js'; type StoredProposal = SpaceWorkbookProposal & { conversationId: string; runId: string; edits: WorkbookEdit[]; expiresAt: number; requiresReview: boolean; appliedVersionId?: string; }; export declare function createWorkbookProposal(input: Pick): StoredProposal; export declare function isLatestWorkbookProposal(proposal: StoredProposal): boolean; export declare function purgeWorkbookProposals(id: string): void; export declare function findWorkbookProposal(proposalId: string): StoredProposal | undefined; export declare function workbookProposalView({ id, versionId, proposalId, appliedVersionId, changes, effects }: StoredProposal): SpaceWorkbookProposal; export declare function applyWorkbookProposal(proposal: StoredProposal, options: { allowReviewedChanges: boolean; assertWritable: () => void; }): Promise<"review" | "missing" | import("@xopcai/gateway-contract").SpaceVersionLink | "conflict">; export {};