import { type FontSize } from './style'; /** * these are the stacks we're currently supporting. */ export declare const font_stack_names: readonly ["default", "old-style", "transitional", "handwritten", "monospace", "industrial", "ui"]; export type FontStackType = typeof font_stack_names[number]; export declare const font_stack_labels: Record; /** * representation of a font stack as an object we can manage in themes. * the impetus for this is having some font "sets" we can use in a sheet * that we know will render in a reasonable cross-platform way. * * we're also taking advantage of chrome supporting font features in * canvas. we have to do a little bit of carve-out for ffx browsers on * windows but that should be it, and the fallback is OK. */ export interface FontStack { /** the font family from css. this will usually be a list. */ family: string; /** the actual font used */ font?: string; /** default size for grid cells. may be different for different fonts. */ size: FontSize; /** * font variants. we used this for sitka text to apply lining-nums and * tabular-nums, although we're not using sitka anymore. atm only chrome * supports font variants in canvas (boo). */ variants?: string; } /** * * @param name - for reporting purposes only * @param computed - computed css to resolve variables * @returns */ export declare const GenerateFontStack: (name: string, computed: CSSStyleDeclaration) => FontStack;