import { T } from ".."; import type { TStateWhereCondition } from "../types"; declare const utils: { typeOf: (data: any) => string; isDate: (data: any) => boolean; consoleDebug: (sql?: string, retry?: boolean, node?: { type: "primary" | "replica"; node?: number; } | null) => void; consoleExec: (startTime: number, endTime: number) => void; consoleCache: (provider: Record) => void; faker: (value: string) => string | number | boolean | Date; columnRelation: (name: string) => string; timestamp: (dateString?: string | Date) => T.DateTime; date: (value?: Date) => string; escape: (v: any, opts?: { hard: boolean; }) => any; escapePayload: (v: any) => any; escapeXSS: (str: any) => any; generateUUID: (version?: 4 | 7) => string; transfromBooleanToNumber: (data: any) => any; transfromDateToDateString: (data: any) => any; snakeCase: (data: any) => any; camelCase: (data: any) => any; randomString: (length?: number) => string; hookHandle: (hooks: Function[], result: any[] | Record | null) => Promise; chunkArray: (array: T[], length: number) => T[][]; wait: (ms: number) => Promise | undefined; softNumber: (n: any) => number; transfromValueHasRaw: (value: unknown) => string | number; transfromValueHasOp: (str: string) => { op: string; value: string; } | null; checkValueHasRaw: (value: unknown) => boolean; valueAndOperator: (value: any, operator: string, useDefault?: boolean) => any[]; baseModelTemplate: ({ model, schema, imports, relation }: { model: string; schema: string; imports: string; relation: { types: string; useds: string; }; }) => string; decoratorModelTemplate: ({ model, schema, imports }: { model: string; schema: string; imports: string; }) => string; applyTransforms: ({ result, transforms, action }: { result: any; transforms: Record any | Promise; from?: (v: any) => any | Promise; }> | null; action: "to" | "from"; }) => Promise; hash32: (str: string) => number; nestConditions: (conditions: TStateWhereCondition[], condition?: "AND" | "OR") => { condition: "AND" | "OR"; nested: TStateWhereCondition[] | undefined; column?: string; operator?: string; value?: any; }[]; formatQueryValue: (v: any) => any; bindingParameters: (sql: string, parameters?: (boolean | number | string | any[] | null)[] | Record, opts?: { raw: boolean; }) => string; shallowClone: (value: any) => any; sqlFormatted: (sql: string) => string; }; export type TUtils = typeof utils; export { utils }; export default utils;