import { type TypographyConfig } from '@/components/platform/administration/uiConfiguration/TypographyEditor';
export declare const TYPOGRAPHY_CHANGED_EVENT = "smartstack:typography:changed";
/** Accept a custom Google Font via a key prefixed with `gf:` (e.g. "gf:Inter Tight"). */
export declare function buildCustomGoogleFontKey(familyName: string): string;
/**
 * Inject the Google Fonts stylesheet for a given family key WITHOUT applying it
 * to the document root. Useful for editor previews that want to render a font
 * locally (via inline `style`) without mutating the global theme CSS vars.
 * Exported — the editor calls this on font pick / import to make the preview
 * render with the right typeface.
 */
export declare function ensureGoogleFontLoaded(family: string): void;
/**
 * Preload MULTIPLE Google Fonts in a single stylesheet so UI previews (font
 * pickers, grids) can render each family in its own typeface simultaneously.
 * Uses a dedicated `<link>` separate from the runtime FONT_LINK_ID so it never
 * interferes with the active theme's font. Calling this again replaces the
 * previous preload link.
 */
export declare function ensureFontsPreloaded(families: string[]): void;
/** Resolve a font-family key (preset or `gf:Name`) into a full CSS font-family
 *  stack with safe fallbacks. Exported so UI previews can match the runtime
 *  exactly without duplicating the stack table. */
export declare function resolveFontStack(family: string): string;
/**
 * Notify a live editor change (bypasses the DB round-trip for instant preview).
 * Consumers that re-render on event: `TypographyApplier` picks up the config in the event detail.
 */
export declare function notifyTypographyChanged(config?: TypographyConfig): void;
/**
 * Side-effect component: applies the typography config from the ThemeContext
 * (`effectiveUiConfig.defaultTypographyJson`) to the document root. Listens for
 * live-edit events so in-flight editor changes are reflected immediately.
 * Renders nothing. Mount once at the app root.
 */
export declare function TypographyApplier(): null;
//# sourceMappingURL=TypographyApplier.d.ts.map