import { AllLocales } from '../shared/types'; import { DomainConfig, MiddlewareConfigWithDefaults } from './NextIntlMiddlewareConfig'; export declare function getLocaleFromPathname(pathname: string): string; export declare function getInternalTemplate['pathnames']>>(pathnames: Pathnames, pathname: string): [Locales[number] | undefined, keyof Pathnames | undefined]; export declare function formatTemplatePathname(sourcePathname: string, sourceTemplate: string, targetTemplate: string, localePrefix?: string): string; /** * Removes potential locales from the pathname. */ export declare function getNormalizedPathname(pathname: string, locales: Locales): string; export declare function getKnownLocaleFromPathname(pathname: string, locales: Locales): Locales[number] | undefined; export declare function getBasePath(pathname: string, pathLocale: string): string; export declare function getRouteParams(template: string, pathname: string): Record | undefined; export declare function formatPathname(template: string, params?: object): string; export declare function getPathWithSearch(pathname: string, search: string | undefined): string; export declare function getHost(requestHeaders: Headers): string | undefined; export declare function isLocaleSupportedOnDomain(locale: string, domain: DomainConfig): boolean; export declare function getBestMatchingDomain(curHostDomain: DomainConfig | undefined, locale: string, domainConfigs: Array>): DomainConfig | undefined;