type ExportColumn = { columnName?: string; caption?: string; order?: number; }; type ExportSheet = { order?: number; resultSetIndex?: number; sheetName?: string; showAllColumns?: boolean; columns?: ExportColumn[]; }; type ExportStructure = { showAllSheets?: boolean; sheets?: ExportSheet[]; }; export type ResponseMESF = { ok: false; message: string; } | { ok: true; data: any; }; export type spParameter = { name: string; value: string | number | boolean | null | Date; }; /** * Per-call options for callV3. Everything here is optional, so a call that needs none of it looks * exactly like callV2. */ export type CallOptions = { /** Cancels the request, e.g. React Query's signal. */ signal?: AbortSignal; /** * Ignores the server side query cache for this call: the stored procedure runs against the * database and the stored copy is replaced with the result. What the reload button on a grid * needs. Actions that are not cached are unaffected. */ invalidateCache?: boolean; }; export declare class MESApiService { private config; hasErrors: boolean; error: any; private TOKEN; constructor(); prepareCall(): void; changePassword(userId: string, password: string): Promise; authenticate(userName: string, password: string): Promise; loginWithAzureAD(accessToken: string): Promise; loginWithWindowsAuthentication(): Promise; uploadFiles(selectedFiles: File[], folderName?: string): Promise; call(procedure: string, parameters: any[], database?: string): Promise; /** * Kept for the existing callers. Delegates to callV3 so there is a single implementation. */ callV2(procedure: string, parameters: any[], signal?: AbortSignal | undefined): Promise; /** * Same as callV2 with the per-call options grouped in a third argument, so new ones can be * added without growing the signature. See CallOptions. */ callV3(procedure: string, parameters: any[], options?: CallOptions): Promise; callJSON(procedure: string, parameters: any[], database?: string): Promise; import(procedure: string, parameters: any[], files: any[], uniqueFile: any, database?: string): Promise; export(procedure: string, parameters: spParameter[], fileName: string, database?: string): Promise; exportExcel(procedure: string, parameters: spParameter[], fileName: string, excelStructure: ExportStructure, database?: string): Promise; checkIfWindowsAuthIsEnabled(): Promise; } export {};