import { RunStore } from "./persistence.js"; import type { AgentAttempt } from "./agent-execution.js"; import type { AgentIdentity, JsonValue, ShellIdentity, ShellOptions, ShellResult, WorkflowBridge, WorkflowExecution } from "./types.js"; export declare const RPC_LIMIT_BYTES: number; export declare const HEARTBEAT_TIMEOUT_MS = 5000; export declare function encoded(value: JsonValue): string; export declare function encoded(value: unknown): asserts value is JsonValue; export declare function agentIdentityPath(identity: AgentIdentity): string; export declare function shellIdentityPath(identity: ShellIdentity): string; export declare function readShellResult(value: unknown): ShellResult; export declare function agentWorktree(identity: AgentIdentity): { worktreeOwner?: string; }; export declare function executeShellCommand(command: string, options: ShellOptions, signal: AbortSignal, cwd?: string): Promise; export declare function runWorkflow(script: string, args?: JsonValue, bridge?: WorkflowBridge, signal?: AbortSignal): WorkflowExecution; export declare function persistActiveAgentAttempt(store: RunStore, id: string, active: AgentAttempt): Promise; export declare function persistAgentAttempts(store: RunStore, id: string, attempts: readonly AgentAttempt[]): Promise; export type { AgentIdentity, FunctionIdentity, ShellIdentity, WorkflowBridge, WorkflowExecution } from "./types.js";