export type TextstylePreset = { id: string; name: string; category: string; style: Record; }; export type TextstyleCatalog = ReadonlyMap | Record; export declare function mergePresetTextStyle(presetStyle: Record, recordStyle: unknown): Record; export declare function resolveCaptionStylePreset>(record: T, catalog: TextstyleCatalog): { record: T; resolved: boolean; }; export declare function applyCaptionStylePresets(root: T, catalog: TextstyleCatalog): { root: T; unresolved: string[]; };