import type { FlexTokens, SemanticColorTokenValues, SemanticMotion, SemanticShadows, SemanticSpacing } from '../../flex/tokens.types'; import type { ResolvedThemeAppearance } from '../../types/appearance.types'; import type { ShadowToken } from '../types/Shadow.types'; import type { PartialTheme, Theme } from '../types/Theme.types'; export interface ThemeFromFlexTokensOptions { fallback?: Theme | PartialTheme; } /** * Flex tokens in the representation used before interactive colors: each color * is its rest value, optional `color.hover` and `color.pressed` maps hold * explicit states, a shadow may be a legacy `{ ambient, key }` token, and the * later `motion` group and `spacing.componentBase800` may be absent. * * @deprecated Pass resolved {@link FlexTokens}, whose colors carry * `rest`, `hover`, and `pressed`. */ export type FlatFlexTokens = Omit & { color: SemanticColorTokenValues & { hover?: Partial; pressed?: Partial; }; shadow: { [Name in keyof SemanticShadows]: SemanticShadows[Name] | ShadowToken; }; spacing: Omit & Partial>; motion?: SemanticMotion; }; /** * Project Flex tokens into a complete legacy Theme. * * The Fluent theme for the appearance fills values that Flex cannot represent, * the optional fallback adds author or host metadata, mapped Flex values remain * authoritative, and the final host appearance reflects the resolved * structured appearance. Reading a derived interaction state computes it. * Layered Flex shadows project lossily to legacy { ambient, key } shadows: the * first layer is ambient, the last is key, and middle layers are dropped. An * empty shadow keeps the Fluent theme's shadow. */ export declare function themeFromFlexTokens(tokens: FlexTokens | FlatFlexTokens, appearance: ResolvedThemeAppearance, options?: { fallback?: Theme | PartialTheme; }): Theme; //# sourceMappingURL=themeFromFlexTokens.d.ts.map