import { StyleFunction } from "../style/index.js"; /** * given a list of StyleFunction return the intersection of the props each individual * StyleFunction requires. * * If `firstFn` requires { color: string } and `secondFn` requires { spacing: number } * their composed function requires { color: string, spacing: number } */ type ComposedArg = T extends Array<(arg: infer P) => any> ? P : never; type ComposedOwnerState = ComposedArg; export type ComposedStyleFunction>> = StyleFunction> & { filterProps: string[]; }; export default function compose>>(...args: T): ComposedStyleFunction;