UNPKG

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