export type ViewerErrorCode = 'UNSUPPORTED_FORMAT' | 'PARSE_ERROR' | 'RENDER_ERROR' | 'PASSWORD_REQUIRED' | 'PASSWORD_INCORRECT' | 'NETWORK_ERROR' | 'CORRUPT_FILE' | 'PERMISSION_DENIED' | 'MEMORY_LIMIT' | 'WORKER_ERROR'; export interface ViewerErrorOptions { cause?: unknown; retryable?: boolean; } export declare class ViewerError extends Error { readonly code: ViewerErrorCode; readonly rootCause?: unknown; readonly retryable: boolean; constructor(code: ViewerErrorCode, message: string, options?: ViewerErrorOptions); } export declare function isViewerError(value: unknown): value is ViewerError;