import * as sql from 'mssql'; export interface SqlConfig extends sql.config { user: string; password: string; server: string; database: string; options?: { encrypt?: boolean; [key: string]: any; }; } export type RunCallback = (sqlConfig: SqlConfig, err?: Error) => void; /** * This function checks if the database connection is active * * @returns Promise - Returns true if connection is active, false otherwise */ export declare const isConnected: () => Promise<{ status: number; message: string; }>; /** * This function is used to connect to the database. * * @param sqlConfig - The SQL configuration to connect to the database * @param run - Optional callback function to be executed after the connection is established * @returns Promise - Returns true if connection is successful, false otherwise */ export declare const connectToServer: (sqlConfig: SqlConfig, run?: RunCallback) => Promise;