Files
starface-outlook-sync-addin/node_modules/@fluentui/merge-styles/lib-commonjs/styleToClassName.d.ts
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

23 lines
1.0 KiB
TypeScript

import { IStyle } from './IStyle';
import { Stylesheet } from './Stylesheet';
import { IStyleOptions } from './IStyleOptions';
import { ShadowConfig } from './shadowConfig';
export declare function serializeRuleEntries(options: IStyleOptions, ruleEntries: {
[key: string]: string | number;
}): string;
export interface IRegistration {
className: string;
key: string;
args: IStyle[];
rulesToInsert: string[];
}
export declare function styleToRegistration(options: IStyleOptions, ...args: IStyle[]): IRegistration | undefined;
/**
* Insert style to stylesheet.
* @param registration Style registration.
* @param specificityMultiplier Number of times classname selector is repeated in the css rule.
* This is to increase css specificity in case it's needed. Default to 1.
*/
export declare function applyRegistration(registration: IRegistration, specificityMultiplier?: number, shadowConfig?: ShadowConfig, sheet?: Stylesheet): void;
export declare function styleToClassName(options: IStyleOptions, ...args: IStyle[]): string;