/** * This file is copied from * https://github.com/lucasthevenet/pglite-utils/blob/97a566f7df47841845ff8e3c3a61f5b40f5a9e98/packages/prisma-adapter/src/conversion.ts * * Which has the MIT license, author `Lucas Thevenet `. It has been modified * slightly to pass this package's ESLint settings. */ import { type ParserOptions } from '@electric-sql/pglite'; import { type ArgType, type ColumnType } from '@prisma/driver-adapter-utils'; export declare class UnsupportedNativeDataType extends Error { static readonly typeNames: { [key: number]: string; }; type: string; constructor(code: number); } /** * This is a simplification of quaint's value inference logic. Take a look at quaint's conversion.rs * module to see how other attributes of the field packet such as the field length are used to infer * the correct quaint::Value variant. */ export declare function fieldToColumnType(fieldTypeId: number): ColumnType; export declare const customParsers: ParserOptions; export declare function mapArg(arg: A | Date, argType: ArgType): null | unknown[] | string | Uint8Array | A;