import { ErrorCode, ErrorDetails } from './types'; /** * Base error class for PandaDB errors */ export declare class PandaDBError extends Error { readonly code: ErrorCode; readonly details?: Record; constructor(error: ErrorDetails); /** * Convert error to JSON representation */ toJSON(): ErrorDetails; } /** * Error class for authentication-related errors */ export declare class AuthError extends PandaDBError { constructor(error: ErrorDetails); } /** * Error class for query-related errors */ export declare class QueryError extends PandaDBError { readonly sql?: string; readonly position?: number; readonly params?: any[]; constructor(error: ErrorDetails & { details?: { sql?: string; position?: number; params?: any[]; }; }); /** * Convert error to JSON representation */ toJSON(): ErrorDetails & { details: { sql?: string; position?: number; params?: any[]; }; }; } /** * Error class for validation-related errors */ export declare class ValidationError extends PandaDBError { readonly validationErrors: Record; constructor(error: ErrorDetails & { details?: { validation?: Record; }; }); /** * Convert error to JSON representation */ toJSON(): ErrorDetails & { details: { validation: Record; }; }; } //# sourceMappingURL=errors.d.ts.map