Outlook_Addin_LLM/node_modules/@fluentui/utilities/lib-commonjs/classNamesFunction.d.ts

25 lines
1.1 KiB
TypeScript

import type { IStyleSetBase, IProcessedStyleSet, IStyleFunctionOrObject } from '@fluentui/merge-styles';
export interface IClassNamesFunctionOptions {
/**
* Disables class caching for scenarios where styleProp parts mutate frequently.
*/
disableCaching?: boolean;
/**
* Size of the cache. It overwrites default cache size when defined.
*/
cacheSize?: number;
/**
* Set to true if component base styles are implemented in scss instead of css-in-js.
*/
useStaticStyles?: boolean;
}
/**
* Creates a getClassNames function which calls getStyles given the props, and injects them
* into mergeStyleSets.
*
* Note that the props you pass in on every render should be in the same order and
* immutable (numbers, strings, and booleans). This will allow the results to be memoized. Violating
* these will cause extra recalcs to occur.
*/
export declare function classNamesFunction<TStyleProps extends {}, TStyleSet extends IStyleSetBase>(options?: IClassNamesFunctionOptions): (getStyles: IStyleFunctionOrObject<TStyleProps, TStyleSet> | undefined, styleProps?: TStyleProps) => IProcessedStyleSet<TStyleSet>;