import { INodeManifestOut, IPageData, IPageDataJsonParams, IProxyRequestError } from "./types"; /** * Returns a fixed path for requesting page-data.json files. */ export declare function fixedPagePath(pagePath: string): string; /** * If the request would result in CORS errors, it is proxied automatically through a Gatsby function on Gatsby Cloud (proxying only works when this function is called from within Gatsby Cloud). */ export declare const maybeProxiedRequest: ({ url, skipJson, }: { url: string; skipJson?: boolean; }) => Promise<{ data?: any; exists?: boolean; statusCode?: number; error?: IProxyRequestError | Error; passwordProtected?: true; }>; /** * Used to check if a redirect url exists before we redirect the user. */ export declare const doesUrlExist: (url: string) => Promise; export declare const fetchPageDataJson: ({ manifest, frontendUrl, }: IPageDataJsonParams) => Promise; export declare const doesPageManifestIdMatch: (params: IPageDataJsonParams, pageDataJson?: IPageData | null) => Promise; /** * Waits for the redirect url to be available * then checks the manifest.pageDataDigest against the sites page-data.json to make sure the page-data.json has finished deploying and propagating */ export declare const waitForPageDataToBeDeployed: ({ redirectUrl, manifest, frontendUrl, }: { redirectUrl: string; manifest?: INodeManifestOut; frontendUrl: string; }) => Promise; /** * Fetches the corresponding node manifest file from the users Gatsby site */ export declare const fetchNodeManifest: ({ manifestId, sourcePluginName, pollCallback, frontendUrl, setShowError, }: { manifestId: string; siteId: string | null; sourcePluginName: string; pollCallback: (() => void) | undefined; frontendUrl: string; setShowError: (arg: boolean) => void; }) => Promise<{ manifest?: INodeManifestOut; error?: IProxyRequestError | Error; shouldPoll: boolean; loadingDuration?: number; redirectUrl?: string; }>; //# sourceMappingURL=utils.d.ts.map