import { SchemaTypeDef } from '@based/schema/def'; import { DbClient } from '../../index.js'; import { create } from './create/index.js'; import { Ctx } from './Ctx.js'; import { del } from './delete/index.js'; import { expire } from './expire/index.js'; import { update } from './update/index.js'; import { upsert } from './upsert/index.js'; export declare const handleError: (db: DbClient, ctx: Ctx, fn: typeof create | typeof update | typeof del | typeof expire | typeof upsert, args: IArguments, e: any) => Promise; export declare const errors: { readonly NotExists: { new (id: number, schema: SchemaTypeDef): { name: string; message: string; stack?: string; cause?: unknown; }; isError(error: unknown): error is Error; captureStackTrace(targetObject: object, constructorOpt?: Function): void; prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any; stackTraceLimit: number; }; }; export declare const errorMap: { 1: { new (id: number, schema: SchemaTypeDef): { name: string; message: string; stack?: string; cause?: unknown; }; isError(error: unknown): error is Error; captureStackTrace(targetObject: object, constructorOpt?: Function): void; prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any; stackTraceLimit: number; }; };