type ErrorInfo = {
    componentStack?: string;
};
import type { Logger } from "vite";
import type { PanicThreshold } from "../types.js";
/**
 * Error handling options
 */
export interface HandleErrorOptions {
    error: unknown;
    errorInfo?: ErrorInfo | null;
    logger?: Logger | Console;
    mode?: "development" | "production" | "test";
    panicThreshold?: PanicThreshold;
    critical?: boolean;
    context: string;
    log?: boolean;
}
export type HandleErrorFn = (options: HandleErrorOptions) => Error | null;
export type GlobalErrorHandlerOptions = {
    panicThreshold: PanicThreshold;
    logger: Logger;
    verbose?: boolean;
};
export type SetupGlobalErrorHandlerFn = (options: GlobalErrorHandlerOptions) => void;
export type CleanupGlobalErrorHandlerFn = () => void;
export {};
//# sourceMappingURL=types.d.ts.map