import * as React from 'react'; import { type ViewProps } from 'react-native'; import type { EdgeInsets, Metrics, Rect } from './SafeArea.types'; export declare const SafeAreaInsetsContext: React.Context; export declare const SafeAreaFrameContext: React.Context; export interface SafeAreaProviderProps extends ViewProps { children?: React.ReactNode; initialMetrics?: Metrics | null; /** * @deprecated */ initialSafeAreaInsets?: EdgeInsets | null; } export declare function SafeAreaProvider({ children, initialMetrics, initialSafeAreaInsets, style, ...others }: SafeAreaProviderProps): React.JSX.Element; export declare function useSafeAreaInsets(): EdgeInsets; export declare function useSafeAreaFrame(): Rect; export type WithSafeAreaInsetsProps = { insets: EdgeInsets; }; export declare function withSafeAreaInsets(WrappedComponent: React.ComponentType<(React.PropsWithoutRef | T) & WithSafeAreaInsetsProps>): React.ForwardRefExoticComponent & React.RefAttributes>; /** * @deprecated */ export declare function useSafeArea(): EdgeInsets; /** * @deprecated */ export declare const SafeAreaConsumer: React.Consumer; /** * @deprecated */ export declare const SafeAreaContext: React.Context; //# sourceMappingURL=SafeAreaContext.d.ts.map