// Ambient types for `mssql`, which ships its types only in the separate `@types/mssql` package. This // declares the slice client.ts uses — the precedent mesh-catalog's pg.d.ts sets — so the module // type-checks without deciding what runs: the real `mssql` is the package.json dependency the // builder installs and inlines into the bundle (novox/hq ADR 0198 §4). declare module "mssql" { interface Result { recordsets: unknown; } interface Request { input(name: string, type: unknown, value: unknown): Request; query(text: string): Promise; batch(text: string): Promise; } class ConnectionPool { constructor(config: { server: string; port?: number; user?: string; password?: string; database?: string; options?: { encrypt?: boolean; trustServerCertificate?: boolean }; pool?: { min?: number; max?: number }; connectionTimeout?: number; requestTimeout?: number; }); connect(): Promise; request(): Request; close(): Promise; } const sql: { ConnectionPool: typeof ConnectionPool; NVarChar: unknown }; export default sql; }