import { planProjectedAppend } from "../foundation/event-reducer/index.ts"; import { projectEventSnapshot } from "../foundation/projection-cache/index.ts"; import type { BusinessFileSystem, CommandRuntime, EventOptions, EventStore, IdeaPaths, ProjectConfig } from "./shared/business-types.ts"; interface InteractionArguments { root: string; id: string; paths: IdeaPaths; input: Record | null; expectedLength?: number | undefined; expectedDigest?: string | undefined; options: EventOptions; } export declare function appendLocalInteraction({ root, id, paths, store, bytes, input, expectedLength, expectedDigest, options, }: InteractionArguments & { store: EventStore; bytes: Buffer; }): Promise<{ id: string; outcome: string; written: boolean; length: number; digest: string; sequence: number; }>; export declare function appendProjectedInteraction({ root, id, paths, filesystem, input, expectedLength, expectedDigest, options, }: InteractionArguments & { filesystem: BusinessFileSystem; }): Promise<{ id: string; outcome: string; written: boolean; length: number; digest: string | undefined; sequence: number; }>; export declare function writeProjectedAppend(root: string, id: string, paths: IdeaPaths, before: Awaited>, planned: ReturnType, options: EventOptions, context: Record, { validate, validateApplied, }?: { validate?: () => void | Promise; validateApplied?: () => void | Promise; }): Promise; export declare function appendProjectedMetadata({ root, id, paths, filesystem, tree, config, input, expectedLength, expectedDigest, expectedPrimary, confirmDecision, options, runtime, }: { root: string; id: string; paths: IdeaPaths; filesystem: BusinessFileSystem; tree: string; config: ProjectConfig; input: Record | null; expectedLength?: number; expectedDigest?: string; expectedPrimary?: string; confirmDecision: boolean; options: EventOptions; runtime: CommandRuntime; }): Promise<{ supported: boolean; reason: string; id?: never; reduction?: never; valid?: never; detail?: never; target?: never; baseline?: never; results?: never; } | { supported: boolean; reason: string; id: string; reduction: { ok: false; code: string; sequence: number; } | undefined; valid?: never; detail?: never; target?: never; baseline?: never; results?: never; } | { supported: boolean; valid: boolean; detail: string; target: string; baseline: { commit: string; source: string; ref: null; }; results: Record[]; reason?: never; id?: never; reduction?: never; } | { supported: boolean; receipt: { id: string; outcome: string; written: boolean; length: number; digest: string; sequence: number; primary: string; }; } | { supported: boolean; receipt: { id: string; outcome: string; written: boolean; length: number; digest: string; primary: string; sequence?: never; }; } | { supported: boolean; receipt: { id: string; outcome: string; written: boolean; primary: string; length: number; digest: string | undefined; sequence: number; history: { results: Record[]; supported: boolean; valid: boolean; detail: string; target: string; baseline: { commit: string; source: string; ref: null; }; reason?: never; id?: never; reduction?: never; }; }; }>; export {}; //# sourceMappingURL=append-event.d.ts.map