import type { CoValue, CoValueErrorState, ID } from "../internal.js"; import { CoValueLoadingState } from "./types.js"; export declare class JazzError { id: ID | undefined; type: typeof CoValueLoadingState.UNAVAILABLE | typeof CoValueLoadingState.DELETED | typeof CoValueLoadingState.UNAUTHORIZED; issues: JazzErrorIssue[]; constructor(id: ID | undefined, type: typeof CoValueLoadingState.UNAVAILABLE | typeof CoValueLoadingState.DELETED | typeof CoValueLoadingState.UNAUTHORIZED, issues: JazzErrorIssue[]); toString(): string; prependPath(item: string): JazzError; } export type JazzErrorIssue = { code: typeof CoValueLoadingState.UNAVAILABLE | typeof CoValueLoadingState.DELETED | typeof CoValueLoadingState.UNAUTHORIZED | "validationError" | "deleteError"; message: string; params: Record; path: string[]; }; export declare function fillErrorWithJazzErrorInfo( /** * The error we are going to fill with the jazz error info. * * Passed externally to provide a better stack trace. */ errorBase: Error, jazzError: JazzError | undefined): Error; export declare function getJazzErrorType(error: unknown): CoValueErrorState | "unknown"; //# sourceMappingURL=JazzError.d.ts.map