export declare const HTTP_ERRORS: { 400: { title: 'Bad Request'; message: 'The server could not understand the request.' }; 401: { title: 'Unauthorized'; message: 'Authentication is required to access this resource.' }; 403: { title: 'Forbidden'; message: 'You do not have permission to access this resource.' }; 404: { title: 'Not Found'; message: 'The requested resource could not be found.' }; 405: { title: 'Method Not Allowed'; message: 'The HTTP method is not allowed for this resource.' }; 408: { title: 'Request Timeout'; message: 'The server timed out waiting for the request.' }; 422: { title: 'Unprocessable Entity'; message: 'The request was well-formed but could not be processed.' }; 429: { title: 'Too Many Requests'; message: 'You have exceeded the rate limit.' }; 500: { title: 'Internal Server Error'; message: 'An unexpected error occurred on the server.' }; 502: { title: 'Bad Gateway'; message: 'The server received an invalid response from an upstream server.' }; 503: { title: 'Service Unavailable'; message: 'The service is temporarily unavailable.' }; 504: { title: 'Gateway Timeout'; message: 'The server did not receive a timely response from an upstream server.' } }; /** * Types for the error page rendering system * Inspired by Laravel's Ignition error handler */ export declare interface StackFrame { file: string line: number column?: number function?: string method?: string isApp: boolean isVendor: boolean codeSnippet?: CodeSnippet } export declare interface CodeSnippet { startLine: number lines: Array<{ line: number; code: string; highlighted: boolean }> } export declare interface RequestContext { method?: string url?: string headers?: Record queryParams?: Record body?: unknown cookies?: Record } export declare interface RoutingContext { controller?: string routeName?: string middleware?: string[] params?: Record } export declare interface EnvironmentContext { nodeVersion?: string bunVersion?: string framework?: string frameworkVersion?: string environment?: string platform?: string cwd?: string } export declare interface QueryInfo { query: string time?: number connection?: string } export declare interface UserContext { id?: string | number email?: string name?: string roles?: string[] attributes?: Record } export declare interface JobContext { name?: string queue?: string uuid?: string attempt?: number maxAttempts?: number payload?: Record dispatchedAt?: Date timeout?: number } export declare interface ErrorPageData { exceptionClass: string message: string code?: string | number file?: string line?: number column?: number stackFrames: StackFrame[] handled: boolean httpStatus?: number request?: RequestContext routing?: RoutingContext environment?: EnvironmentContext queries?: QueryInfo[] user?: UserContext job?: JobContext context?: Record documentationLinks?: string[] occurredAt: Date } export declare interface ErrorPageConfig { showFullPaths?: boolean showEnvironment?: boolean showQueries?: boolean showRequest?: boolean appName?: string appVersion?: string snippetLines?: number basePaths?: string[] theme?: 'light' | 'dark' | 'auto' customCss?: string enableCopyMarkdown?: boolean enableShare?: boolean } export declare interface HttpError { status: HttpStatusCode message: string title: string } export type HttpStatusCode = 400 | 401 | 403 | 404 | 405 | 408 | 422 | 429 | 500 | 502 | 503 | 504;