import type { ExecuteCsvQueryParams } from '../../../domains/query-execution/types.js'; export type CsvExecuteParams = Omit & { /** Filename for the downloaded CSV file. Defaults to `data.csv`. */ filename?: string; }; export type UseCsvQueryLoaderResult = { /** Triggers CSV query execution and browser file download with the given params. */ execute: (params: CsvExecuteParams) => void; }; /** * Hook that executes a CSV query on demand and triggers a browser file download. * Call `execute` with query params to start the download; no params are needed at hook initialisation. * * @returns `execute` callback */ export declare function useCsvQueryFileLoader(): UseCsvQueryLoaderResult;