import type { DriverAdapter } from "@prisma/driver-adapter-utils"; export interface IServerOptions { /** Port on which this server listens for requests */ port: number; /** Absolute path to the prisma schema that will be displayed */ schemaPath: string; /** Source code of the schema */ schemaText: string; /** Path to Studio's frontend assets */ staticAssetDir?: string; /** Hostname to bind the Express server to */ hostname?: string; /** Optional driver adapter to use to connect to the database */ adapter?: DriverAdapter; /** Prisma Client-specific options */ prismaClient?: { /** Custom import resolves */ resolve?: { "@prisma/engines"?: string; "@prisma/client"?: string; ".prisma/client"?: string; }; forcePrismaLibrary?: boolean; forcePrismaBinary?: boolean; /** optional directUrl */ directUrl?: string; }; /** Controls if telemetry information is recorded */ telemetry?: boolean; /** Versions of prisma dependencies reported (Only used for reporting, does not affect actually used prisma dependencies) */ versions: { prisma: string; queryEngine?: string; }; /** Controls if the server is in development mode */ development?: boolean; } export declare class StudioServer { private server?; private options; private channels; constructor(options: IServerOptions); /** * Starts a server that serves the react app */ start: () => Promise; /** * Stops the server * * @param reason Optional parameter to log why the server was stopped */ stop: (reason?: string) => void; }