/** * Retrieves the text direction ('ltr' or 'rtl') for the current or specified locale. * * If no locale is provided, the direction for the current user's locale is returned asynchronously. * * @param locale Optional locale code (e.g., 'ar', 'en-US'). If omitted, uses the current locale. * @returns If locale is omitted: Promise<'ltr' | 'rtl'>. * If locale is provided: 'ltr' | 'rtl' directly. * * @example * const dir = await getLocaleDirection(); // Promise<'ltr' | 'rtl'> * const arabicDir = getLocaleDirection('ar'); // 'rtl' */ export declare function getLocaleDirection(locale: string): 'ltr' | 'rtl'; export declare function getLocaleDirection(): Promise<'ltr' | 'rtl'>; /** * Retrieves the text direction ('ltr' or 'rtl') for the current or specified locale from the `` context. * * If no locale is provided, the direction for the current user's locale is returned. * * @param {string} [locale] - Optional locale code (e.g., 'ar', 'en-US'). If omitted, uses the current locale from context. * @returns {'ltr' | 'rtl'} The text direction for the locale: 'rtl' for right-to-left languages, otherwise 'ltr'. * * @example * const dir = useLocaleDirection(); // e.g., 'ltr' * const arabicDir = useLocaleDirection('ar'); // 'rtl' */ export declare function useLocaleDirection(locale?: string): 'ltr' | 'rtl'; //# sourceMappingURL=getLocaleDirection.d.ts.map