%PDF- %PDF-
Direktori : /var/www/html/node_modules/next/dist/shared/lib/router/utils/ |
Current File : /var/www/html/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.d.ts |
/// <reference types="node" /> import type { ParsedUrlQuery } from 'querystring'; import type { Rewrite } from '../../../../lib/load-custom-routes'; import { parseRelativeUrl } from './parse-relative-url'; export default function resolveRewrites(asPath: string, pages: string[], rewrites: { beforeFiles: Rewrite[]; afterFiles: Rewrite[]; fallback: Rewrite[]; }, query: ParsedUrlQuery, resolveHref: (path: string) => string, locales?: string[]): { matchedPage: boolean; parsedAs: ReturnType<typeof parseRelativeUrl>; asPath: string; resolvedHref?: string; externalDest?: boolean; };