import type { Translate } from "../i18n/index.js";
export declare function pascalCase(str: string): string;
export interface Page {
  pathname: string;
  query?: object;
  subheader?: string;
  title?: string | false;
}
export declare function pageToTitle(page: Page): string | null;
export declare function pageToTitleI18n(page: Page, t: Translate): string | null;
/**
 * Get the value of a cookie
 * Source: https://vanillajstoolkit.com/helpers/getcookie/
 * @param name - The name of the cookie
 * @return The cookie value
 */
export declare function getCookie(name: string): string | undefined;
/**
 * as is a reference to Next.js's as, the path in the URL
 * pathname is a reference to Next.js's pathname, the name of page in the filesystem
 * https://nextjs.org/docs/api-reference/next/router
 *
 * @param pathname - The URL pathname
 * @param languages - List of supported language codes. Defaults to `['en']`.
 */
export declare function pathnameToLanguage(pathname: string, languages?: string[]): {
  userLanguage: string;
  canonicalAs: string;
  canonicalAsServer: string;
  canonicalPathname: string;
};