import * as next from 'next'; import { GetServerSidePropsContext, GetServerSideProps, GetStaticPropsContext, GetStaticProps } from 'next'; import { c as UniformPreviewData, a as UniformGetServerSideProps, b as UniformGetStaticProps } from '../models-BGg_qtcM.mjs'; import * as node_querystring from 'node:querystring'; import { CanvasClient, CompositionDeliveryClient, CompositionDeliveryReadOptions, CompositionGetBySlugParameters, DataResolutionOption, CompositionManagementListQuery, CompositionGetParameters, CompositionGetResponse, CompositionManagementClient } from '@uniformdev/canvas'; import { ParsedUrlQuery } from 'querystring'; import '@uniformdev/canvas-react'; declare const withUniformGetServerSideProps: (options?: { /** 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 slug structure */ prefix?: string; /** Useful when you need to modify the slug passed to the API */ modifySlug?: (slug: string, context: GetServerSidePropsContext) => 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; requestOptions?: Omit, "state"> | Omit, "state">; callback?: UniformGetServerSideProps; /** Disables logging of response information and timings */ silent?: boolean; }) => GetServerSideProps; declare const withUniformGetStaticPaths: (options?: { projectMapId?: string; /** A string that you want prepended to slugs returned by Canvas. Useful when calling from a nested folder which is not part of your slug structure */ prefix?: string; /** Set to true if you want to include draft compositions */ preview?: boolean; /** Way to override list request params */ requestOptions?: Partial | Partial; /** Way to modify list of slugs before building array of paths */ callback?: (compositions: CompositionGetResponse[]) => Promise; /** * If you need to override the default client, you can pass it here. */ client?: CanvasClient | CompositionManagementClient; }) => () => Promise<{ paths: string[]; fallback: boolean; }>; declare const withUniformGetStaticProps: (options: { /** 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 slug passed to the API */ modifySlug?: (slug: 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. * @deprecated Passing a `CanvasClient` is deprecated; pass a `CompositionDeliveryClient` instead. */ 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 'slug' param for [[...slug]].jsx */ declare const getStaticProps: next.GetStaticProps<{ [key: string]: any; }, node_querystring.ParsedUrlQuery, UniformPreviewData>; declare const getStaticPaths: () => Promise<{ paths: string[]; fallback: boolean; }>; export { getServerSideProps, getStaticPaths, getStaticProps, withUniformGetServerSideProps, withUniformGetStaticPaths, withUniformGetStaticProps };