import type { ExecutorResult, Goal, GoalRun, Loop, LoopRun, RunReceipt, PublicWorkflowEvent, StoredWorkflowEvent, WorkflowInvocation, WorkflowRun, WorkflowSpec, WorkflowStepRun, WorkflowWorkItem } from "../types.js"; /** * Replace `value` with a placeholder recording how long it was. * * Idempotent: redacting an already-redacted value returns it unchanged rather * than reporting the placeholder's own length. A control-plane client reads * loops through an API that has already redacted them, then formats them for * display — without this, a 137-character prompt printed as "[redacted 20 * chars]" (the length of "[redacted 137 chars]"), which silently destroyed the * only signal an operator had for checking the stored prompt was intact. */ export declare function redact(value: string | undefined, visible?: number): string | undefined; export declare function textOutputBlocks(value: Pick, opts?: { indent?: string; }): string[]; export declare function publicLoop(loop: Loop): Record; export declare function publicRun(run: LoopRun, showOutput?: boolean, opts?: { redactError?: boolean; }): Record; export declare function publicRunReceipt(receipt: RunReceipt): Record; export declare function publicExecutorResult(result: ExecutorResult, showOutput?: boolean): Record; export declare function publicWorkflow(workflow: WorkflowSpec): Record; export declare function publicWorkflowRun(run: WorkflowRun): Record; export declare function publicWorkflowInvocation(invocation: WorkflowInvocation): Record; export declare function publicWorkflowWorkItem(item: WorkflowWorkItem): Record; export declare function publicWorkflowStepRun(run: WorkflowStepRun, showOutput?: boolean): Record; export declare function publicWorkflowEvent(event: StoredWorkflowEvent | PublicWorkflowEvent): Record; export declare function publicGoal(goal: Goal): Record; export declare function publicGoalRun(run: GoalRun): Record;