import { type HttpErrorDescriptor } from '../errors/http-error-classifier'; export type InternalRestErrorBody = { code: number; message: string; hint?: string; stacktrace?: string; meta?: Record; }; export declare function serializePublicApiError(descriptor: HttpErrorDescriptor): { status: number; body: { message: string; }; }; export declare function serializeInternalRestError(descriptor: HttpErrorDescriptor): { status: number; body: InternalRestErrorBody; };