import type * as DMMF from '@prisma/dmmf'; import type { ActiveConnectorType, BinaryPaths, DataSource, GeneratorConfig, SqlQueryOutput } from '@prisma/generator'; import type { O } from 'ts-toolbelt'; export declare class DenylistError extends Error { constructor(message: string); } export interface GenerateClientOptions { datamodel: string; schemaPath: string; /** Runtime path used in runtime/type imports */ runtimeBase?: string; outputDir: string; generator: GeneratorConfig; dmmf: DMMF.Document; datasources: DataSource[]; binaryPaths: BinaryPaths; testMode?: boolean; copyRuntime?: boolean; copyRuntimeSourceMaps?: boolean; runtimeSourcePath: string; engineVersion: string; clientVersion: string; activeProvider: ActiveConnectorType; typedSql?: SqlQueryOutput[]; compilerBuild: 'fast' | 'small'; } export interface FileMap { [name: string]: string | FileMap; } export interface BuildClientResult { fileMap: FileMap; prismaClientDmmf: DMMF.Document; } export declare function buildClient({ schemaPath, runtimeBase, runtimeSourcePath, datamodel, binaryPaths, outputDir, generator, dmmf, datasources, engineVersion, clientVersion, activeProvider, typedSql, compilerBuild, }: O.Required): Promise; export declare function generateClient(options: GenerateClientOptions): Promise;