import type { ErrorPageConfig, ErrorPageData, EnvironmentContext, JobContext, RequestContext, RoutingContext, UserContext } from './types'; /** * Create a new error handler instance */ export declare function createErrorHandler(config?: ErrorPageConfig): ErrorHandler; /** * Quick helper to render an error page */ export declare function renderError(error: Error, options?: { status?: number request?: Request | RequestContext config?: ErrorPageConfig }): string; /** * Quick helper to create an error Response */ export declare function errorResponse(error: Error, options?: { status?: number request?: Request | RequestContext config?: ErrorPageConfig }): Response; /** * Error handler class for generating beautiful error pages */ export declare class ErrorHandler { constructor(config?: ErrorPageConfig); setFramework(name: string, version?: string): this; setEnvironment(env: Partial): this; setRequest(request: Request | RequestContext): this; setRouting(routing: RoutingContext): this; setUser(user: UserContext): this; setJob(job: JobContext): this; addQuery(query: string, time?: number, connection?: string): this; clearQueries(): this; addContext(key: string, value: unknown): this; clearContext(): this; createErrorData(error: Error, httpStatus?: number): ErrorPageData; render(error: Error, httpStatus?: number): string; renderProduction(status: number, message?: string): string; handleError(error: Error, status?: number): Response; clone(): ErrorHandler; }