UNPKG

335 BTypeScriptView Raw
1import { ThemedValue, ThemeModes, DefaultValue } from '../types';
2declare type Modes<V> = {
3 [key in ThemeModes]?: V;
4};
5declare type VariantModes<V> = {
6 [index: string]: Modes<V>;
7};
8export default function themed<V = DefaultValue>(modesOrVariant: Modes<V> | string, variantModes?: VariantModes<V>): ThemedValue<V>;
9export {};