import { EncodedParameterValue } from '../core/payload'; export type Nil = null | undefined; export type NonNil = T extends Nil ? never : T; export type Nillable = T | Nil; export type Supplier = () => T; export type Func = (t: T) => U; export type Unary = Func; export type Runnable = () => void; export type PartialNillable = { [K in keyof T]?: Nillable : T[K]>; }; /** * A string that represents a hex encoded value. */ export type HexString = string; export type Base64String = string; export type Promisy = T extends null | undefined ? never : T extends (() => infer R) | (() => Awaited) | ((...x: any[]) => infer R) | ((...x: any[]) => Awaited) ? T : T extends Function ? never : T; export declare namespace Promisy { function resolve(promisy: Promisy): Promise; function resolveOrReject(promisy: Nillable>, nilError?: string): Promise; } type UUID = string; /** * ValueType is the type of the data in the database. * * If you are sending bytes to a blob column, you must send it as a Uint8Array. If you send a string to blob column, it will be converted to base64. */ export type ValueType = string | number | null | undefined | Array | boolean | Uint8Array | UUID; export declare function isValueType(v: unknown): v is ValueType; /** * QueryParams is a type for the parameters used within query. */ export type QueryParams = Record; export type EncodedQueryParams = Record; export {};