UNPKG

@bolttech/server-side-next

Version:

This library was generated with [Nx](https://nx.dev).

8 lines (7 loc) 848 B
/// <reference types="react" /> import { GetServerSidePropsContext, GetServerSidePropsResult, GetStaticPathsResult, GetStaticPropsContext, GetStaticPropsResult } from 'next'; import { AppProps, ComponentImport } from '@bolttech/essentials'; export declare function getStaticPaths(): Promise<GetStaticPathsResult>; export declare function getStaticProps<O = Record<string, unknown>>({ params }: GetStaticPropsContext, urlMap: any, importMapper: any, options?: O): Promise<GetStaticPropsResult<Record<string, unknown>>>; export declare function getServerSideProps<O = Record<string, unknown>>({ req, res, query }: GetServerSidePropsContext, urlMap: any, importMapper: any, options?: O): Promise<GetServerSidePropsResult<Record<string, unknown>>>; export declare const App: (componentList: ComponentImport) => (props: AppProps) => JSX.Element;