import { type ThemeToken } from './derive.js'; import { type CodeStyle, type Mode, type Scheme } from './model.js'; export interface FitOptions { /** How much each token counts toward the fit; 1 by default. */ weights?: Partial>; } export interface FitToken { token: ThemeToken; target: string; fitted: string; /** ΔEOK × 100, so 2 is about one just-noticeable difference. */ deltaE: number; /** The target failed WCAG AA against its background, so the fitted color is meant to differ. */ correctedForContrast: boolean; } export interface FitReport { tokens: FitToken[]; /** Mean and largest ΔEOK × 100 over the tokens not corrected for contrast. */ mean: number; max: number; /** Up to three tokens furthest from their target, worst first. */ worst: ThemeToken[]; /** faithful: the main surfaces and colors within 2 and nothing past 5; close: within 5 and 10; changed: past that. */ verdict: 'faithful' | 'close' | 'changed'; } export interface FitResult { scheme: Scheme; mode: Mode; code: CodeStyle; report: FitReport; } type Target = Partial>; /** The scheme whose derived tokens come closest to `target`, a partial map of tokens a host has colors for, with how close each came. */ export declare function fitSeed(target: Target, options?: FitOptions): FitResult; export {};