import type { JsonSchema } from './callspecDocument'; import type { RouteErrorDef } from './types'; /** Payload schemas for callspec.json — wire shape is always `{ error, data? }`. */ export declare function documentRouteErrors(errors: Record | undefined): Record | undefined; export declare function openApiErrorResponses(domainErrors: Record | undefined, options?: { includeUnauthorized?: boolean; }): Record;