/** * @license * Copyright Stbui All Rights Reserved. * https://github.com/stbui/prophet */ declare type SetLocale = (locale: String) => Promise; /** * * @example * * import { useSetLocale } from '@stbui/prophet-core'; * * const availableLanguages = { * fr: 'China', * en: 'English', * } * const LanguageSwitcher = () => { * const setLocale = useSetLocale(); * return ( * * ); * } */ declare const useSetLocale: () => SetLocale; export default useSetLocale;