1 | import type { Prefetch } from "./prefetch";
|
2 | declare const pathToSegments: (path: string) => {
|
3 | text: string;
|
4 | isDynamic: boolean;
|
5 | isCatchAll: boolean;
|
6 | }[];
|
7 | export interface Params {
|
8 | [param: string]: string | string[];
|
9 | }
|
10 | export interface RouteInfo {
|
11 | segments: ReturnType<typeof pathToSegments>;
|
12 | params: Params;
|
13 | }
|
14 | export declare type StaticPath<P extends Params = Params> = string | {
|
15 | params: P;
|
16 | meta?: any;
|
17 | };
|
18 | export interface StaticPropsContext<P extends Params = Params> {
|
19 | path: string;
|
20 | params: P;
|
21 | prefetch?: Prefetch;
|
22 | }
|
23 | export interface StaticPathsContext {
|
24 | prefetch?: Prefetch;
|
25 | }
|
26 | export declare function getPathFromParams(fileName: string, params: Params): string;
|
27 | export declare function generateStaticPropsContext(fileName: string, pathOrParams: string | {
|
28 | params: Params;
|
29 | }): StaticPropsContext;
|
30 | export {};
|