export declare class HookDiagnosticError extends Error { readonly code: string; readonly stage: "context" | "sync"; constructor(code: string, stage: "context" | "sync"); } export declare function hookChildError(stdout: string, stage: "context" | "sync"): HookDiagnosticError; export declare function hookFailureReason(error: unknown, profileId?: string): string;