/** * Utilities for handling SSR errors gracefully */ /** * Extract HTTP status code from an error object. * Looks for a `status` property that is a number or parseable string. * Returns 500 if no valid status found. */ export declare function getErrorStatus(error: unknown): number; /** * Escape HTML special characters to prevent XSS */ export declare function escapeHtml(str: string): string; export interface RenderErrorPageOptions { /** Show stack trace in output */ showStack?: boolean; /** Additional hint message to display */ hint?: string; /** Badge text to display (e.g., "DEV MODE") */ badge?: string; } /** * Render an HTML error page for SSR failures */ export declare function renderErrorPage(error: unknown, url: string, statusCode: number, options?: RenderErrorPageOptions): string; //# sourceMappingURL=ssrErrorHandler.d.ts.map