/// import { GetStaticPropsContext, GetStaticPropsResult, GetServerSidePropsResult, GetServerSidePropsContext, Redirect } from 'next'; import type { DocumentNode } from 'graphql'; type Props = Record; export interface GetNextServerSidePropsConfig { Page: { query?: DocumentNode; variables?: (context: GetStaticPropsContext | GetServerSidePropsContext, extra?: TProps) => { [key: string]: any; }; }; props?: TProps; notFound?: true; redirect?: Redirect; /** * Provide extra parameters for the Page.variables function call. */ extra?: TProps; } export interface GetNextStaticPropsConfig extends GetNextServerSidePropsConfig { revalidate?: number | boolean; } export interface FaustPage extends React.FC<{ data?: Data; __PAGE_VARIABLES__?: { [key: string]: any; }; } & TProps> { query?: DocumentNode; variables?: (context: GetStaticPropsContext | GetServerSidePropsContext, extra?: Props) => { [key: string]: any; }; } /** * This helper function lets you build a static site with your WordPress data * * @param {GetStaticPropsContext} context * @param {GetNextStaticPropsConfig} cfg */ export declare function getNextStaticProps(context: GetStaticPropsContext, cfg: GetNextStaticPropsConfig): Promise>; /** * This helper function lets you server side render your page with WordPress data * * @param {GetServerSidePropsContext} context * @param {GetNextServerSidePropsConfig} cfg */ export declare function getNextServerSideProps(context: GetServerSidePropsContext, cfg: GetNextServerSidePropsConfig): Promise>; export {};