import { Locale } from "@intlayer/types/allLocales"; //#region src/server/getLocale.d.ts /** * Helper function to extract the current locale from Next.js headers and cookies. * * This function is designed to be used in Server Components, Server Actions, or Route Handlers * to determine the locale preferred by the user or stored in their preferences. * * @returns A promise that resolves to the detected `Locale`. * * @example * ```tsx * import { getLocale } from 'next-intlayer/server'; * * export default async function MyServerComponent() { * const locale = await getLocale(); * // ... * } * ``` */ declare const getLocale: () => Promise; //#endregion export { getLocale }; //# sourceMappingURL=getLocale.d.ts.map