import type { PluginHookContributions } from "../../types/hook"; type PostToolUseHook = NonNullable; export interface DelegateTaskErrorPattern { pattern: string; errorType: string; fixHint: string; } export declare const DELEGATE_TASK_ERROR_PATTERNS: DelegateTaskErrorPattern[]; export interface DetectedError { errorType: string; originalOutput: string; } export declare function detectDelegateTaskError(output: string): DetectedError | null; export declare function buildRetryGuidance(errorInfo: DetectedError): string; export declare function createDelegateRetryHandler(): PostToolUseHook; export {};