import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent"; import { Type, type Static } from "typebox"; declare const SpawnParameters: Type.TObject<{ request_key: Type.TString; difficulty: Type.TOptional, Type.TLiteral<"medium">, Type.TLiteral<"hard">]>>; role: Type.TOptional; audits_worker_id: Type.TOptional; continue_worker_id: Type.TOptional; context: Type.TOptional, Type.TLiteral<"fork">]>>; goal: Type.TString; acceptance: Type.TArray; constraints: Type.TArray; budget: Type.TOptional; value: Type.TInteger; }>, Type.TObject<{ kind: Type.TLiteral<"unlimited">; }>]>; max_wall_clock_ms: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"limited">; value: Type.TInteger; }>, Type.TObject<{ kind: Type.TLiteral<"unlimited">; }>]>; max_tokens: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"limited">; value: Type.TInteger; }>, Type.TObject<{ kind: Type.TLiteral<"unlimited">; }>]>; max_cost_usd: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"limited">; value: Type.TNumber; }>, Type.TObject<{ kind: Type.TLiteral<"unlimited">; }>]>; max_output_bytes: Type.TUnion<[Type.TObject<{ kind: Type.TLiteral<"limited">; value: Type.TInteger; }>, Type.TObject<{ kind: Type.TLiteral<"unlimited">; }>]>; }>>; model: Type.TOptional; }>>; fallback_models: Type.TOptional; }>>>; capabilities: Type.TOptional>; workspace: Type.TObject<{ path: Type.TString; mode: Type.TUnion<[Type.TLiteral<"read-only">, Type.TLiteral<"mutating">]>; worktree_path: Type.TOptional; }>; context_refs: Type.TArray, Type.TLiteral<"session">, Type.TLiteral<"artifact">]>; value: Type.TString; hash: Type.TOptional; }>>; channel: Type.TUnion<[Type.TLiteral<"json-result">, Type.TLiteral<"rpc">]>; side_effect_policy: Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"idempotent">, Type.TLiteral<"reconcilable">, Type.TLiteral<"external">]>; report_schema: Type.TOptional; required: Type.TArray; properties: Type.TRecord<"^.*$", Type.TObject<{ type: Type.TUnion<[Type.TLiteral<"string">, Type.TLiteral<"number">, Type.TLiteral<"boolean">, Type.TLiteral<"object">, Type.TLiteral<"array">, Type.TLiteral<"null">]>; }>>; }>>; report_schema_policy: Type.TOptional, Type.TLiteral<"preferred">, Type.TLiteral<"advisory">]>>; requires_human_approval: Type.TOptional; acceptance_check: Type.TOptional; }>>; }>; declare const ListParameters: Type.TObject<{ limit: Type.TOptional; }>; declare const CollectParameters: Type.TObject<{ worker_ids: Type.TArray; structured_reports: Type.TOptional>; }>; declare const CancelParameters: Type.TObject<{ worker_id: Type.TString; reason: Type.TString; }>; declare const SteerParameters: Type.TObject<{ worker_id: Type.TString; message: Type.TString; correlation: Type.TOptional; }>; declare const ReviseParameters: Type.TObject<{ worker_id: Type.TString; correlation: Type.TOptional; goal: Type.TOptional; acceptance: Type.TOptional>; constraints: Type.TOptional>; report_schema: Type.TOptional; required: Type.TArray; properties: Type.TRecord<"^.*$", Type.TObject<{ type: Type.TUnion<[Type.TLiteral<"string">, Type.TLiteral<"number">, Type.TLiteral<"boolean">, Type.TLiteral<"object">, Type.TLiteral<"array">, Type.TLiteral<"null">]>; }>>; }>>; report_schema_policy: Type.TOptional, Type.TLiteral<"preferred">, Type.TLiteral<"advisory">]>>; requires_human_approval: Type.TOptional; acceptance_check: Type.TOptional; }>>; }>; declare const CleanupRunsParameters: Type.TObject<{ older_than_ms: Type.TInteger; dry_run: Type.TOptional; yes: Type.TOptional; }>; export type SpawnWorkerToolParameters = Static; export type ListWorkersToolParameters = Static; export type CollectWorkerToolParameters = Static; export type CancelWorkerToolParameters = Static; export type SteerWorkerToolParameters = Static; export type ReviseContractToolParameters = Static; export type CleanupRunsToolParameters = Static; export interface WorkerToolProvider { spawn(params: SpawnWorkerToolParameters, signal: AbortSignal | undefined, ctx: ExtensionContext): Promise; list(params: ListWorkersToolParameters, ctx: ExtensionContext): Promise; collect(params: CollectWorkerToolParameters, signal: AbortSignal | undefined, ctx: ExtensionContext): Promise; cancel(params: CancelWorkerToolParameters, signal: AbortSignal | undefined, ctx: ExtensionContext): Promise; steer(params: SteerWorkerToolParameters, signal: AbortSignal | undefined, ctx: ExtensionContext): Promise; reviseContract(params: ReviseContractToolParameters, signal: AbortSignal | undefined, ctx: ExtensionContext): Promise; cleanupRuns(params: CleanupRunsToolParameters, signal: AbortSignal | undefined, ctx: ExtensionContext): Promise; doctorWorkflow(signal: AbortSignal | undefined, ctx: ExtensionContext): Promise; } export declare function registerWorkerTools(pi: ExtensionAPI, provider: WorkerToolProvider): void; export {}; //# sourceMappingURL=worker-tools.d.ts.map