import type { SplitStyleProps, StaticConfig, ThemeParsed, UseMediaState } from '../types'; import type { ViewProps, ViewStyle } from '../views/View'; type UsePropsOptions = Pick & { disableExpandShorthands?: boolean; forComponent?: { staticConfig: StaticConfig; }; noClass?: boolean; /** * Disable watching for media queries */ noMedia?: boolean; }; export type PropsWithoutMediaStyles = { [Key in keyof A as Key extends `$${string}` ? never : Key]?: A[Key]; }; type PropsLikeObject = (ViewProps & Record) | object; type StyleLikeObject = (ViewStyle & Record) | object; /** * Returns props and style as a single object, expanding and merging shorthands and media queries. * * Use sparingly, it will loop props and trigger re-render on all media queries you access. * * */ export declare function useProps(props: A, opts?: UsePropsOptions): PropsWithoutMediaStyles; /** * Returns only style values fully resolved and flattened with merged media queries and shorthands with all theme and token values resolved. * * Use sparingly, it will loop props and trigger re-render on all media queries you access. * * */ export declare function useStyle(props: A, opts?: UsePropsOptions): PropsWithoutMediaStyles; /** * Returns [props, styles, theme, media] fully resolved and flattened with merged media queries and shorthands with all theme and token values resolved. * * Use sparingly, it will loop props and trigger re-render on all media queries you access. * * */ export declare function usePropsAndStyle(props: A, opts?: UsePropsOptions): [PropsWithoutMediaStyles, PropsWithoutMediaStyles, ThemeParsed, UseMediaState]; export {}; //# sourceMappingURL=useProps.d.ts.map