import { type DaemonErrorSource, type StructuredDaemonErrorBody } from '../errors/index.js';
export interface JsonErrorResponseOptions {
    readonly status?: number;
    readonly fallbackMessage?: string;
    readonly source?: DaemonErrorSource;
}
export declare function buildErrorResponseBody(error: unknown, options?: JsonErrorResponseOptions): StructuredDaemonErrorBody;
export declare function jsonErrorResponse(error: unknown, options?: JsonErrorResponseOptions): Response;
export declare function summarizeErrorForRecord(error: unknown, options?: JsonErrorResponseOptions): string;
//# sourceMappingURL=error-response.d.ts.map