import { IStyle } from './IStyle'; import { IStyleFunctionOrObject, IStyleFunction } from './IStyleFunction'; export declare type Diff = ({ [P in T]: P; } & { [P in U]: never; } & { [x: string]: never; })[T]; /** * {@docCategory Omit} */ export declare type Omit = Pick>; /** * Helper function whose role is supposed to express that regardless if T is a style object or style function, * it will always map to a style function. */ export declare type __MapToFunctionType = Extract extends never ? (...args: any[]) => Partial : Extract; /** * A style set is a dictionary of display areas to IStyle objects. * It may optionally contain style functions for sub components in the special `subComponentStyles` * property. */ export declare type IStyleSet = { [key: string]: any; }> = { [P in keyof Omit]: IStyle; } & { subComponentStyles?: { [P in keyof TStyleSet['subComponentStyles']]: IStyleFunctionOrObject; }; }; /** * A concatenated style set differs from `IStyleSet` in that subComponentStyles will always be a style function. */ export declare type IConcatenatedStyleSet> = { [P in keyof Omit]: IStyle; } & { subComponentStyles?: { [P in keyof TStyleSet['subComponentStyles']]: IStyleFunction; }; }; /** * A processed style set is one which the set of styles associated with each area has been converted * into a class name. Additionally, all subComponentStyles are style functions. */ export declare type IProcessedStyleSet> = { [P in keyof Omit]: string; } & { subComponentStyles: { [P in keyof TStyleSet['subComponentStyles']]: __MapToFunctionType; }; };