import { errors } from '@vinejs/vine'; import { Exception } from '@poppinss/utils'; import { ValidationError as JoiValidationError } from "../../../joi"; export type VineValidationError = InstanceType; export declare const isError: (value: unknown) => value is Error; export declare const isException: (value: unknown) => value is Exception; export declare const isJoiValidationError: (value: unknown) => value is JoiValidationError; export declare const isVineValidationError: (value: unknown) => value is VineValidationError; export declare const isNotImplementedError: (error: Error) => boolean; export declare const normalizeError: (error: unknown) => unknown; export declare class UNIQUE_CONSTRAINT_VIOLATION extends Exception { static status: number; static code: string; constructor(reason: Exception | Error); } export declare class FOREIGN_KEY_VIOLATION extends Exception { static status: number; static code: string; constructor(reason: Exception | Error); } export declare class NOT_NULL_VIOLATION extends Exception { static status: number; static code: string; constructor(reason: Exception | Error); } export declare class CHECK_CONSTRAINT_VIOLATION extends Exception { static status: number; static code: string; constructor(reason: Exception | Error); } export declare class DATA_VALIDATION_ERROR extends Exception { static status: number; static code: string; constructor(reason: Exception | Error); } export declare class INVALID_DATA_TYPE extends Exception { static status: number; static code: string; constructor(reason: Exception | Error); } export declare class DEADLOCK extends Exception { static status: number; static code: string; constructor(reason: Exception | Error); } export declare class LOCK_TIMEOUT extends Exception { static status: number; static code: string; constructor(reason: Exception | Error); } export declare class SCHEMA_ERROR extends Exception { static status: number; static code: string; constructor(reason: Exception | Error); } export declare class DATABASE_CONNECTION_ERROR extends Exception { static status: number; static code: string; constructor(reason: Exception | Error); } export declare class PERMISSION_DENIED extends Exception { static status: number; static code: string; constructor(reason: Exception | Error); } export declare class SERIALIZATION_FAILURE extends Exception { static status: number; static code: string; constructor(reason: Exception | Error); } export declare class QUERY_SYNTAX_ERROR extends Exception { static status: number; static code: string; constructor(reason: Exception | Error); } export declare class DIVISION_BY_ZERO extends Exception { static status: number; static code: string; constructor(reason: Exception | Error); }