export type ErrorDetails = {
    readonly code?: string;
    readonly message?: string;
};
/**
 * Custom Error class representing an unexpected error.
 */
export declare class UnexpectedError extends Error {
    /** Static error code to identify the error type. */
    static ERROR: string;
    /** Error code associated with this error instance. */
    code?: string;
    errorDetails?: ErrorDetails;
    /**
     * Creates a new UnexpectedError.
     *
     * @param {string} [code] - Optional error code.
     * @param {string} [message] - Optional error message. If not provided, a default error message is generated by `getErrorJSONString`.
     */
    constructor(code?: string, message?: string);
}
//# sourceMappingURL=unexpected-error.d.ts.map