import { SpaceProps } from "./space"; import { TypographyProps } from "./typography"; import { LayoutProps } from "./layout"; import { ColorProps } from "./color"; import { FlexProps } from "./flex"; import { BorderProps } from "./border"; import { PositionProps } from "./position"; import { ShadowProps } from "./shadow"; import { ResponsiveStyle } from "./types"; import { GridProps } from "./grid"; export type StyledProps = SpaceProps & TypographyProps & LayoutProps & ColorProps & FlexProps & BorderProps & PositionProps & ShadowProps & GridProps; export type StyleFunction = (props: StyledProps) => ResponsiveStyle; /** * Composes multiple style functions into a single style function. * This allows for more efficient application of multiple style functions at once, * reducing redundancy and complexity. * * @param {...StyleFunction[]} styleFunctions - An array of style functions to be combined. * @returns {StyleFunction} A new style function that applies all the input style functions * and returns a single style string. * @example * const combinedFunction = compose(space, typography, layout, color, flex); * const styles = combinedFunction({ m: 8, fontSize: 16, width: "100%", bg: "red", flexDir: "column" }); * // The `styles` variable now contains a single style string combining all the applied style functions. */ export declare const compose: (...styleFunctions: StyleFunction[]) => StyleFunction;