import type { AgentToolUpdateCallback } from "@earendil-works/pi-coding-agent"; export type ToolErrorCategory = "validation" | "timeout" | "network" | "tool_execution" | "unknown"; export type ToolProgressUpdater = AgentToolUpdateCallback<{ context: string; kind: "progress"; message: string; }> | undefined; export declare function toolErrorMessage(context: string, error: unknown): string; export declare class SteelToolError extends Error { constructor(message: string); } export declare function toolError(context: string, error: unknown): Error; export declare function isAbortError(error: unknown): boolean; export declare function throwIfAborted(signal: AbortSignal | undefined): void; export declare function sleepWithSignal(ms: number, signal: AbortSignal | undefined): Promise; export declare function withAbortSignal(promise: Promise, signal: AbortSignal | undefined): Promise; export declare function withToolError(context: string, operation: () => Promise, signal?: AbortSignal): Promise; export declare function emitProgress(onUpdate: ToolProgressUpdater, context: string, message: string): void;