export type CutSdkErrorCode = 'INVALID_INPUT' | 'INVALID_JSON' | 'DRAFT_NOT_FOUND' | 'MEDIA_NOT_FOUND' | 'MEDIA_DOWNLOAD_FAILED' | 'MEDIA_METADATA_FAILED' | 'MISSING_API_TOKEN' | 'CLOUD_REQUEST_FAILED' | 'CLOUD_UPLOAD_FAILED' | 'DRAFT_SPEC_VALIDATION_FAILED' | 'DRAFT_SPEC_RESOLVE_FAILED' | 'UNKNOWN_ERROR'; export interface CutSdkErrorOptions { code: CutSdkErrorCode | string; message: string; operation?: string; path?: string; status?: number; details?: unknown; cause?: unknown; } export interface SdkErrorContext { operation?: string; path?: string; } export declare class CutSdkError extends Error { code: string; operation?: string; path?: string; status?: number; details?: unknown; cause?: unknown; constructor(options: CutSdkErrorOptions); } export declare function isCutSdkError(error: unknown): error is CutSdkError; export declare function normalizeSdkError(error: unknown, context?: SdkErrorContext): CutSdkError; export declare function withSdkErrorContext(operation: string, fn: (...args: Args) => Promise): (...args: Args) => Promise; export declare function parseSdkJson(value: string, path: string, operation?: string): T; //# sourceMappingURL=errors.d.ts.map