import React from 'react'; import { SCLocaleContextType } from '../../../types'; /** * Creates Global Context * :::tip Context can be consumed in one of the following ways: ```jsx 1. {(locale,) => (...)} ``` ```jsx 2. const scLocaleContext: SCLocaleContextType = useContext(SCLocaleContext); ``` ```jsx 3. const scLocaleContext: SCLocaleContextType = useSCLocale(); ```` ::: */ export declare const SCLocaleContext: React.Context; /** * #### Description: * This component makes the `intl` available down the React tree. * @param children * @return * ```jsx * * ``` */ export default function SCLocaleProvider({ children }: { children: React.ReactNode; }): JSX.Element; /** * Export hoc to inject the base theme to components * @param Component */ export declare const withSCLocale: (Component: any) => (props: any) => import("react/jsx-runtime").JSX.Element; /** * Let's only export the `useSCLocale` hook instead of the context. * We only want to use the hook directly and never the context component. */ export declare function useSCLocale(): SCLocaleContextType;