import { BlockErrorException, type BlockError } from '@23blocks/contracts'; import type { JsonApiDocument, JsonApiError } from './types.js'; /** * Convert a JSON:API error to a BlockError */ export declare function jsonApiErrorToBlockError(error: JsonApiError): BlockError; /** * Convert multiple JSON:API errors to a single BlockError * Uses the first error as the primary error, includes others in meta */ export declare function jsonApiErrorsToBlockError(errors: JsonApiError[]): BlockError; /** * Create a BlockErrorException from JSON:API errors */ export declare function blockErrorFromJsonApi(errors: JsonApiError[]): BlockErrorException; /** * Check if a document is an error document and throw if so */ export declare function throwIfError(document: JsonApiDocument): void; /** * Assert that a document is not an error document */ export declare function assertNotError(document: T): asserts document is T; //# sourceMappingURL=errors.d.ts.map