Files
klz-cables.com/.pnpm-store/v10/files/b9/6294b8c7f23609f8f5562701ce0ad165ca891e0d0f6b08b32e0fcee25f3ab2bb49daa7ba73105747befa6c4a5bc16bed5f1781957f617f5ada48bcc5bedce4
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

21 lines
1.5 KiB
Plaintext

import type { LinkProps } from 'next/link.js';
import type { LocalePrefixConfigVerbose, LocalePrefixMode, Locales, Pathnames } from '../routing/types.js';
type Href = LinkProps['href'];
export declare function isLocalizableHref(href: Href): boolean;
export declare function unprefixPathname(pathname: string, prefix: string): string;
export declare function prefixPathname(prefix: string, pathname: string): string;
export declare function hasPathnamePrefixed(prefix: string | undefined, pathname: string): boolean;
export declare function getLocalizedTemplate<AppLocales extends Locales>(pathnameConfig: Pathnames<AppLocales>[keyof Pathnames<AppLocales>], locale: AppLocales[number], internalTemplate: string): string;
export declare function normalizeTrailingSlash(pathname: string): string;
export declare function matchesPathname(
/** E.g. `/users/[userId]-[userName]` */
template: string,
/** E.g. `/users/23-jane` */
pathname: string): boolean;
export declare function getLocalePrefix<AppLocales extends Locales, AppLocalePrefixMode extends LocalePrefixMode>(locale: AppLocales[number], localePrefix: LocalePrefixConfigVerbose<AppLocales, AppLocalePrefixMode>): string;
export declare function getLocaleAsPrefix(locale: string): string;
export declare function templateToRegex(template: string): RegExp;
export declare function getSortedPathnames(pathnames: Array<string>): string[];
export declare function isPromise<Value>(value: Value | Promise<Value>): value is Promise<Value>;
export {};