import { type ApplyOutcome } from '../apply-command.js'; import type { WorkspaceSource } from '../compiler.js'; import { type ToolResult, type ToolWorkspace } from './workspace.js'; /** The `yarramate/apply-result/v1` document. */ export type ApplyResult = Extract['result']; /** * One `yarramate/operations/v1` document: YAML or JSON text, or the object * (serialised for you; JSON is YAML to the loader). Diagnostics point into * it as `/operations//` and name `path`, so give it one; default * `operations.yaml`. */ export type OperationsInput = string | { readonly path?: string; readonly source: string; } | { readonly path?: string; readonly document: Record; }; export declare const operationsSourceOf: (operations: OperationsInput) => WorkspaceSource | undefined; /** * `yarramate apply --json`, path-free: plan over the * store, compile the candidate, write all or nothing under compare-and-swap * (ADR 0100, 0103). `landOperations` already does this; this is it with the * input shapes a tool call carries. A refused `writeAll` comes back as * YM704/YM705 diagnostics, as the CLI reports it. No actor, by design: the * record's own `by` fields are the person's, and a history row is the * host's stamp beside the write. */ export declare const applyBatch: (workspace: ToolWorkspace, operations: OperationsInput) => ToolResult;