import * as d3sc from 'd3-scale-chromatic'; import type { Snippet } from 'svelte'; export { default as HeatmapTable } from './HeatmapTable.svelte'; export { default as ToggleMenu } from './ToggleMenu.svelte'; export type CellVal = string | number | boolean | undefined | null | Record | Record[]; export type RowData = { style?: string; class?: string; [key: string]: CellVal; }; export type Label = { label: string; key?: string; group?: string; description?: string; format?: string; better?: `higher` | `lower`; color_scale?: keyof typeof d3sc | null; scale_type?: `linear` | `log`; sticky?: boolean; visible?: boolean; sortable?: boolean; show_sort_indicator?: boolean; disabled?: boolean; style?: string; cell_style?: string; }; export type CellSnippetArgs = { row: RowData; col: Label; val: CellVal; }; export type CellSnippet = Snippet<[CellSnippetArgs]>; export type SpecialCells = Record; export type SortState = { column: string; ascending: boolean; }; export type MultiSortState = SortState[]; export type SortHint = string | { text: string; position?: `top` | `bottom`; permanent?: boolean; style?: string; class?: string; }; export type InitialSort = string | { column: string; direction?: `asc` | `desc`; }; export type Pagination = boolean | { page_size?: number; page_sizes?: number[]; }; export type Search = boolean | { placeholder?: string; expanded?: boolean; }; export type ExportData = boolean | { formats?: (`csv` | `json`)[]; filename?: string; }; export type OnSortCallback = (column: string, dir: `asc` | `desc`) => Promise; export declare const strip_html: (str: string) => string; export declare function calc_cell_color(val: number | null | undefined, // cell value all_values: CellVal[], // all values in the column better: `higher` | `lower` | undefined, // sort direction color_scale?: keyof typeof d3sc | null, // color scale name scale_type?: `linear` | `log`): { bg: string | null; text: string | null; };