import { VeryfrontError } from "../types.js"; /** * Format a VeryfrontError for CLI output * * Format: [slug] title * Detail: {detail} * Suggestion: {suggestion} * Docs: https://veryfront.com/docs/code/guides/errors#{slug} * (Stack trace in dev mode) */ export interface CLIErrorFormatOptions { color?: boolean; verbose?: boolean; } /** * Format any error for CLI output */ export declare function formatCLIError(error: unknown, options?: CLIErrorFormatOptions): string; /** * CLI error boundary - wraps a handler function and catches errors * * Usage: * ```typescript * export async function main() { * await cliErrorBoundary(async () => { * // Your CLI logic here * }); * } * ``` */ export declare function cliErrorBoundary(handler: () => Promise, options?: { onError?: (error: unknown, vfError: VeryfrontError) => void | Promise; getExitCode?: (error: unknown, vfError: VeryfrontError) => number; }): Promise; /** * Synchronous version of CLI error boundary */ export declare function cliErrorBoundarySync(handler: () => void): void; //# sourceMappingURL=cli-error-boundary.d.ts.map