UNPKG

746 BTypeScriptView Raw
1import { Base16Theme } from 'base16';
2import * as CSS from 'csstype';
3export interface Styling {
4 className?: string;
5 style?: CSS.Properties<string | number>;
6}
7export declare type StylingValueFunction = (styling: Styling, ...rest: unknown[]) => Partial<Styling>;
8export declare type StylingValue = string | CSS.Properties<string | number> | StylingValueFunction;
9export declare type StylingConfig = {
10 extend?: string | Base16Theme | StylingValue;
11} & {
12 [name: string]: StylingValue | string | Base16Theme;
13};
14export declare type Theme = string | Base16Theme | StylingConfig;
15export declare type StylingFunction = (keys: (string | false | undefined) | (string | false | undefined)[], ...rest: unknown[]) => Styling;