import { GridApi } from 'ag-grid-enterprise'; import { PTableHandle, PTableDownloadFormat, PTableColumnSpec, PFrameSpecDriver, WritePTableToFsResult } from '@platforma-sdk/model'; import { Nil } from '@milaboratories/helpers'; /** Options for the native CSV export path. */ export interface ExportOptions { tableHandle: PTableHandle; format: PTableDownloadFormat; defaultFileName?: string; } /** * CSV export via the platforma desktop runtime. Prompts for a save * destination via the `Dialog` service, then streams the PTable to the * chosen path via `PFrame.writePTableToFs`. */ export declare function exportCsv(gridApi: GridApi, nativeOptions: ExportOptions): Promise; /** * Checks whether the native CSV export capability is available in the * current platforma runtime environment. Both `Dialog` and `PFrame` * services must be present — desktop-app wires them, web/preview do not. */ export declare function isCsvExportAvailable(): boolean; /** * Collect unified column indices for visible (non-hidden) columns from the * ag-grid column defs, remapped onto the provided PTable spec array so the * indices match the current table handle (ColDef.field indices may be stale * or diverge from the spec order). */ export declare function collectVisibleColumnIndices(gridApi: GridApi, specs: PTableColumnSpec[], pframeSpec: PFrameSpecDriver): Nil | number[]; //# sourceMappingURL=export-csv.d.ts.map