UNPKG

preload-next

Version:

A Preload Link Component for Next.js to handle seamless page transitions

13 lines 729 B
import { DomainLocale } from "next/dist/server/config-shared"; export declare function hasBasePath(path: string): boolean; export declare const removeBasePath: (path: string) => string; export declare const addBasePath: (path: string, required?: boolean) => string | undefined; export declare function removeLocale(path: string, locale?: string): string; export declare const removePathTrailingSlash: (path: string) => string; export declare const createPropError: (args: { key: string; expected: string; actual: string; }) => Error; export declare function getDomainLocale(path: string, locale?: string | false, locales?: string[], domainLocales?: DomainLocale[]): string | false; //# sourceMappingURL=utils.d.ts.map