import { CSSInterpolation } from "@emotion/css"; import { once } from "./utils"; export declare type FalsyValue = false | null | undefined; export declare type TruthyValue = true | 1; export declare type Style = string | CSSInterpolation | (string | CSSInterpolation)[]; export declare type Rule = Style | ((this: any, ...args: any[]) => Style); export declare type RuleSet = { [key: string]: Rule; }; export declare type Styles = T extends Array ? never : { [key in keyof T]?: T[key] extends Style ? any : T[key] extends (param: infer P) => Style ? P | FalsyValue : void; }; export interface DynamicOptions { prefix: TPrefix; separator?: TSeparator; } declare const root: (...styles: (CSSInterpolation | string)[]) => void; export declare type CustomStyle = string | CSSInterpolation | (() => T); export interface Use { (rules: R, styles: Styles | (Styles | FalsyValue)[], ...customStyles: CustomStyle>[]): string; >(rules: R, styles: () => S): (enabled?: any) => string; } declare const use: Use; export declare type Sheet = { (styles: () => Styles): (enabled?: any) => string; (styles: Styles | (Styles | FalsyValue)[], ...customStyles: CustomStyle>[]): string; readonly rules: R; extend(rules: R2): Sheet; }; declare const sheet: (rules: R | (() => R)) => Sheet; export { use, sheet, root, once }; export { cx as cs, keyframes, cache, flush, css, hydrate } from "@emotion/css";