export declare function errorToJson(error: Error): { name: string; message: string; stack: string | undefined; }; type LikelyNeonDbError = { name: string; message: string; sourceError?: Error; }; /** * Quick and dirty type guard to check if an error is *likely* a NeonDbError */ export declare function isLikelyNeonDbError(error: unknown): error is LikelyNeonDbError; export declare function neonDbErrorToJson(error: LikelyNeonDbError): { name: string; message: string; sourceError: { name: string; message: string; stack: string | undefined; } | undefined; stack: string | undefined; }; export {};