1 | import { RequestInfo, RequestInit } from "node-fetch";
|
2 | export declare type Prefetch = ReturnType<typeof createPrefetch>;
|
3 | export interface CacheEntry {
|
4 | data: any;
|
5 | meta: {
|
6 | prefetch: string | null;
|
7 | hash: string | null;
|
8 | };
|
9 | }
|
10 | export declare function getCacheEntry(method: "getStaticPaths" | "getStaticProps", fileName: string): Promise<CacheEntry>;
|
11 | export declare function createPrefetch(previousKey: string | null): (info: RequestInfo, init?: RequestInit) => Promise<string | null>;
|
12 | export declare const isKeyValid: (previousKey: string | null, key: string | null) => boolean;
|