import * as d3_sc from 'd3-scale-chromatic'; export * from './backdrop.svelte'; export { ELEMENT_COLOR_SCHEME_NAMES, type ColorSchemeName } from '../constants'; export type D3InterpolateName = keyof typeof d3_sc & `interpolate${string}`; export declare const is_d3_interpolate_name: (name: string) => name is D3InterpolateName; export declare const get_d3_interpolator: (name: D3InterpolateName) => ((t: number) => string); export declare const COLOR_SCALE_TYPES: readonly ["continuous", "categorical"]; export type ColorScaleType = (typeof COLOR_SCALE_TYPES)[number]; export declare const DEFAULT_CATEGORY_COLORS: Record; export declare const AXIS_COLORS: readonly [readonly ["x", "#d75555", "#e66666"], readonly ["y", "#55b855", "#66c966"], readonly ["z", "#5555d7", "#6666e6"]]; export declare const NEG_AXIS_COLORS: readonly [readonly ["nx", "#b84444", "#cc5555"], readonly ["ny", "#44a044", "#55b155"], readonly ["nz", "#4444b8", "#5555c9"]]; export declare const ELEMENT_COLOR_SCHEMES: { readonly Vesta: Record; readonly Jmol: Record; readonly Alloy: Record; readonly Pastel: Record; readonly Muted: Record; readonly 'Dark Mode': Record; }; export declare const default_element_colors: Record; export declare const is_color: (val: unknown) => val is string; export declare const is_concrete_color: (val: unknown) => val is string; export declare const is_opaque_color: (val: unknown) => val is string; export declare const PLOT_COLORS: readonly ["#4e79a7", "#f28e2c", "#e15759", "#76b7b2", "#59a14f", "#edc949", "#af7aa1", "#ff9da7", "#9c755f", "#bab0ab"]; export declare const plot_color: (idx: number) => string; export declare function perceived_brightness(color: string): number; export declare const composite_colors: (foreground: string, backdrop: string) => string; export interface Paint { background: string; backdrop?: string; choices?: readonly [string, string]; } export declare function pick_contrast_color(paint: Paint): string; export declare const contrast_text_color: (paint: Paint) => string; export declare const CONTRAST_MEMO_LIMIT = 10000; export declare const contrast_color_memo: (opts?: { backdrop?: () => string | undefined; alpha?: () => number; pick?: (paint: Paint) => string; }) => ((background: string | null | undefined) => string | null); export declare function is_dark_mode(element?: Element | undefined): boolean; export declare function watch_dark_mode(on_change: (dark: boolean) => void, element?: Element | undefined): () => void; export declare function css_color_to_hex(color: string | undefined, fallback: string): string; export declare function add_alpha(color: string, alpha: number): string;