import * as next from 'next'; import { GetServerSidePropsContext, PreviewData, GetServerSideProps, GetStaticPropsContext, GetStaticProps } from 'next'; import { a as UniformGetServerSideProps, c as UniformPreviewData, b as UniformGetStaticProps } from '../models-BGg_qtcM.mjs'; import * as node_querystring from 'node:querystring'; import { CanvasClient, CompositionDeliveryClient, CompositionDeliveryReadOptions, CompositionGetByNodePathParameters, DataResolutionOption } from '@uniformdev/canvas'; import { ParsedUrlQuery } from 'querystring'; import { ProjectMapNodeGetRequest, ProjectMapNodeGetResponse, ProjectMapClient } from '@uniformdev/project-map'; import '@uniformdev/canvas-react'; declare const withUniformGetServerSideProps: (options?: { /** * If you need to override the default client, you can pass it here. */ client?: CanvasClient | CompositionDeliveryClient; /** A string that you want to strip from the resolved context.resolvedUrl. Useful when calling from a nested folder which is not part of your project map structure */ prefix?: string; /** Useful when you need to modify the path passed to the API */ modifyPath?: (path: string, context: GetServerSidePropsContext) => string; /** Set to true if you want to include draft compositions */ preview?: boolean; projectMapId?: string; /** Way to override get request params */ requestOptions?: Omit, "state"> | Omit, "state">; /** Custom handler to specify return value and modify composition - e.g. enhance with CMS data */ callback?: UniformGetServerSideProps; /** Disables logging of response information and timings */ silent?: boolean; }) => GetServerSideProps; declare const withUniformGetStaticPaths: (options?: { projectMapId?: string; /** Starting path to fetch nodes from */ rootPath?: string; /** A string that you want prepended to paths returned by your project map. Useful when calling from a nested folder which is not part of your project map structure */ prefix?: string; /** Set to true if you want to include draft compositions */ preview?: boolean; /** Way to override getNodes request params */ requestOptions?: Partial; /** Way to modify list of nodes before building array of paths */ callback?: (nodes: ProjectMapNodeGetResponse["nodes"]) => Promise; /** If you need to override the default client, you can pass it here */ client?: ProjectMapClient; }) => () => Promise<{ paths: string[] | undefined; fallback: boolean; }>; declare const withUniformGetStaticProps: (options: { projectMapId?: string; /** Name of dynamic parameter coming from getStaticPath, usually specified in page file name (e.g. [...slug].jsx will have param = 'slug' */ param: string; /** Useful when you need to modify the path passed to the API */ modifyPath?: (path: string, context: GetStaticPropsContext) => string; /** Set to true if you want to include draft compositions */ preview?: boolean; /** * If you need to override the default client, you can pass it here. */ client?: CanvasClient | CompositionDeliveryClient; /** Way to override get request params */ requestOptions?: Omit, "state"> | Omit, "state">; /** Custom handler to specify return value and modify composition - e.g. enhance with CMS data */ callback?: UniformGetStaticProps; /** Disables logging of response information and timings */ silent?: boolean; }) => GetStaticProps; declare const getServerSideProps: next.GetServerSideProps<{ [key: string]: any; }, node_querystring.ParsedUrlQuery, UniformPreviewData>; /** Ready to go getStaticProps for dynamic route with 'path' param for [[...path]].jsx */ declare const getStaticProps: next.GetStaticProps<{ [key: string]: any; }, node_querystring.ParsedUrlQuery, UniformPreviewData>; declare const getStaticPaths: () => Promise<{ paths: string[] | undefined; fallback: boolean; }>; export { getServerSideProps, getStaticPaths, getStaticProps, withUniformGetServerSideProps, withUniformGetStaticPaths, withUniformGetStaticProps };