import type { ChemicalElement, ElementSymbol } from '../element'; import type { Snippet } from 'svelte'; export declare const make_color_override_key: (x_key: string, y_key: string) => string; export type AxisItem> = { label: string; key?: string; sort_value?: number; category?: string; data?: T; }; export declare const axis_key: (item: AxisItem) => string; export type CellValue = number | string | null; export type HeatmapValues = CellValue[][] | Record>; export declare const cell_value_getter: (values: HeatmapValues, x_items: AxisItem[], y_items: AxisItem[]) => ((x_idx: number, y_idx: number) => CellValue); export type CellContext = { x_item: AxisItem; y_item: AxisItem; x_idx: number; y_idx: number; value: CellValue; bg_color: string | null; }; export interface MissingCellStyle { color?: `element-category` | (string & {}); label?: string; style?: string; } export declare const ORDERING_LABELS: { readonly atomic_number: "Atomic Number"; readonly mendeleev_number: "Pettifor Chemical Similarity"; readonly alphabetical: "Alphabetical"; readonly atomic_mass: "Atomic Mass"; readonly electronegativity: "Pauling Electronegativity"; readonly first_ionization: "Ionization Energy"; readonly melting_point: "Melting Point"; readonly atomic_radius: "Atomic Radius"; readonly density: "Density"; readonly n_valence: "Valence Electrons"; }; export type ElementAxisOrderingKey = keyof typeof ORDERING_LABELS; type ElementAxisOrdering = ElementAxisOrderingKey | ((a: ChemicalElement, b: ChemicalElement) => number); export type HeatmapNormalizeMode = `linear` | `log`; export type HeatmapDomainMode = `auto` | `robust` | `fixed`; export type ColorBarPosition = `right` | `bottom`; export type SymmetricMode = false | `lower` | `upper`; export type HeatmapTooltipProp = Snippet<[CellContext]> | boolean; export type HeatmapExportFormat = `csv` | `json`; export declare const ELEMENT_ORDERINGS: ElementAxisOrderingKey[]; export declare function matrix_to_rows(x_items: AxisItem[], y_items: AxisItem[], values: HeatmapValues): Record[]; export declare function elements_to_axis(symbols?: ElementSymbol[], ordering?: ElementAxisOrdering): AxisItem[]; export { default as HeatmapMatrix } from './HeatmapMatrix.svelte'; export { default as HeatmapMatrixControls } from './HeatmapMatrixControls.svelte';