/** * How runpane reports a failure, to people and agents alike: `message` says what happened, why * (the underlying reason, kept), and what was or was not changed; `next` is the exact step to take. * See "How Pane reports errors" in CONTRIBUTING.md. */ export interface RunpaneFailure { code: string; message: string; next?: string; } export declare class RunpaneError extends Error { readonly code: string; readonly next?: string | undefined; constructor(code: string, message: string, next?: string | undefined); } /** Any thrown value as a failure. Errors that carry a string `code` or `next` (Node, daemon, RunpaneError) keep them. */ export declare function describeFailure(cause: unknown): RunpaneFailure; /** People read stderr; with --json, stdout also carries `{ ok: false, error: { code, message, next } }`. */ export declare function printFailure(cause: unknown, json: boolean): void; //# sourceMappingURL=errors.d.ts.map