import { CSSObject } from '@mui/styled-engine'; export type PropsFor = SomeStyleFunction extends StyleFunction ? Props : never; export type StyleFunction = (props: Props) => any; export type SimpleStyleFunction = StyleFunction>> & { filterProps: string[]; }; export type TransformFunction = (cssValue: unknown, userValue: unknown) => number | string | React.CSSProperties | CSSObject; export interface StyleOptions { cssProperty?: PropKey | keyof React.CSSProperties | false; prop: PropKey; /** * dot access in `Theme` */ themeKey?: string; transform?: TransformFunction; } export function getPath(obj: T, path: string | undefined, checkVars?: boolean): null | unknown; export function getStyleValue(themeMapping: object | ((arg: any) => any), transform: TransformFunction | null, propValueFinal: unknown, userValue?: unknown): any; export default function style(options: StyleOptions): StyleFunction<{ [K in PropKey]?: unknown } & { theme?: Theme; }> & { filterProps: string[]; };