export interface BoomPayload { readonly statusCode: number; readonly error: string; readonly message: string; } export interface BoomOutput { readonly statusCode: number; readonly headers: Readonly>; readonly payload: BoomPayload; } export interface BoomOptions { readonly statusCode?: number; readonly data?: TData; readonly cause?: unknown; } export declare class Boom extends Error { readonly isBoom: true; readonly statusCode: number; readonly data?: TData; constructor(message?: string | Error, options?: BoomOptions); get isServer(): boolean; /** * `@hapi/boom`-compatible nested status info. Computed on every access * (no `#private` cache) so the getter survives prototype-chain rewrites * by other Boom-shaped wrappers — concretely, `new HapiBoom(ourBoom)` * coerces the input to be `instanceof Boom` via `Object.setPrototypeOf` * but never calls our constructor, leaving any private slot uninitialized * and crashing the getter at runtime. */ get output(): BoomOutput; static isBoom(err: unknown): err is Boom; } //# sourceMappingURL=boom.d.ts.map