/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * */ import * as React from 'react'; import type { CustomProperties } from '../../types/styles'; import type { ReactNativeProps } from '../../types/renderer.native'; import type { StrictProps as StrictPropsOriginal } from '../../types/StrictProps'; import type { Style } from '../../types/styles'; type StrictProps = Readonly< Omit< StrictPropsOriginal, keyof ({ children?: | React.ReactNode | (($$PARAM_0$$: ReactNativeProps) => React.ReactNode); }) > & { children?: | React.ReactNode | (($$PARAM_0$$: ReactNativeProps) => React.ReactNode); } >; /** * Produces the relevant React Native props to implement the global HTML props. */ /** * Produces the relevant React Native props to implement the global HTML props. */ type OptionsType = { provideInheritableStyle: boolean; withTextStyle: boolean; withInheritedStyle: boolean; }; type ReturnType = { customProperties: null | undefined | CustomProperties; nativeProps: ReactNativeProps; inheritableStyle: null | undefined | Style; }; export declare function useNativeProps( defaultProps: null | undefined | StrictProps, props: StrictProps, options: OptionsType ): ReturnType;