import { DownloadItem } from '../actions/download'; import { BarWidgetData } from './types'; export interface BarDownloadConfigArgs { filename: string; getData: () => BarWidgetData; /** * Optional getter for the widget's capture element (registered by * `Widget.State` on its success path). When provided, a PNG item is * prepended to the returned list. Wire it to * `() => getCaptureEl(id)`. */ getCaptureEl?: () => HTMLElement | null; /** PNG `pixelRatio` (default 2). */ pngPixelRatio?: number; /** PNG `backgroundColor` (default transparent). */ pngBackgroundColor?: string | null; } /** * Builds download items for the Bar widget. Always includes a CSV item * with one `name,value` block per series, separated by an empty row when * there are multiple. When `getCaptureEl` is supplied, also prepends a PNG * item that rasterises the captured element via `html2canvas`. */ export declare function createBarDownloadConfig(args: BarDownloadConfigArgs): DownloadItem[];