export interface AwaitHumansErrorOptions { code: string; message: string; hint: string; docsUrl: string; } export declare class AwaitHumansError extends Error { readonly code: string; readonly hint: string; readonly docsUrl: string; constructor(options: AwaitHumansErrorOptions); } export declare class TaskTimeoutError extends AwaitHumansError { constructor(task: string, timeoutMs: number); } export declare class SchemaValidationError extends AwaitHumansError { constructor(field: "payload" | "response", details: string); } export declare class TimeoutRangeError extends AwaitHumansError { constructor(timeoutMs: number); } export declare class TaskAlreadyTerminalError extends AwaitHumansError { constructor(taskId: string, status: string); } export declare class VerificationExhaustedError extends AwaitHumansError { constructor(task: string, maxAttempts: number); } /** @reserved Phase 4 */ export declare class MarketplaceNotAvailableError extends AwaitHumansError { constructor(); } export declare class TaskNotFoundError extends AwaitHumansError { constructor(taskId: string); } export declare class TaskCancelledError extends AwaitHumansError { constructor(task: string); } export declare class TaskCreateError extends AwaitHumansError { constructor(status: number, serverBody: string); } export declare class PollError extends AwaitHumansError { constructor(taskId: string, status: number, serverBody: string); } export declare class ServerUnreachableError extends AwaitHumansError { constructor(serverUrl: string, cause: unknown); } //# sourceMappingURL=errors.d.ts.map