@nekobird/styled-chemistry
Version:
A theming system for css-in-js.
17 lines (16 loc) • 943 B
TypeScript
import { IStringOrNull, IStringOrNumber } from './common';
import { ISet, ISuperSet } from './set';
import { IElementGetFunctions } from './elements';
import { ICompoundGetFunctions } from './compounds';
export declare type IMixtureGetFunctionResult = IStringOrNull;
export declare type IMixtureSetArrayItem = (elementGetFunctions: IElementGetFunctions, compoundGetFunctions: ICompoundGetFunctions) => IMixtureGetFunctionResult;
export declare type IMixtureSet = ISet<IMixtureSetArrayItem>;
export declare type IMixtureSuperSet = ISuperSet<IMixtureSetArrayItem>;
export declare type IMixtureGetFunction = (key?: IStringOrNumber) => IMixtureGetFunctionResult;
export declare type IMixtureSuperGetFunction = (name: string) => IMixtureGetFunction;
export interface IMixtures {
readonly [name: string]: IMixtureSuperSet | IMixtureSet;
}
export interface IMixtureGetFunctions {
[name: string]: IMixtureGetFunctions | IMixtureGetFunction;
}