import { Type } from "typebox"; import { type DispatchDependencies, type DispatchResult } from "../dispatch/index.js"; import { type NodeAddress, type PlanFinding } from "../plan/index.js"; import { type Finding } from "../schema/findings.js"; import { type VerificationFailure } from "../verify/index.js"; export declare const MAX_RENDERED_TEXT = 4000; export declare const WorkDispatchParameters: Type.TObject<{ path: Type.TString; nodeAddress: Type.TArray; worktreePath: Type.TString; expectedCommit: Type.TString; }>; export type WorkDispatchPreflightFinding = Finding | PlanFinding | VerificationFailure | { readonly code: "dispatch-input-invalid" | "dispatch-spec-read-error" | "dispatch-spec-path-escape" | "dispatch-branch-unavailable" | "dispatch-aborted"; readonly message: string; }; interface WorkDispatchBase { readonly path: string; readonly nodeAddress: NodeAddress; readonly worktreePath: string; readonly expectedCommit: string; readonly truncated: boolean; } export type WorkDispatchDetails = (WorkDispatchBase & { readonly outcome: "rejected"; readonly dispatchState: "not-dispatched"; readonly findings: readonly WorkDispatchPreflightFinding[]; }) | (WorkDispatchBase & DispatchResult); export declare function createWorkDispatchTool(dependencies?: DispatchDependencies): import("@earendil-works/pi-coding-agent").ToolDefinition; worktreePath: Type.TString; expectedCommit: Type.TString; }>, unknown, any> & import("@earendil-works/pi-coding-agent").ToolDefinition; /** Exported for direct use; src/index.ts deliberately owns registration. */ export declare const workDispatchTool: import("@earendil-works/pi-coding-agent").ToolDefinition; worktreePath: Type.TString; expectedCommit: Type.TString; }>, unknown, any> & import("@earendil-works/pi-coding-agent").ToolDefinition; export {};