import { RichTextRendererComponent, UniformRichText as UniformRichText$1, UniformRichTextNode as UniformRichTextNode$1, RenderRichTextComponentResolver } from '@uniformdev/canvas-react'; import { ParsedUrlQuery } from 'querystring'; export { U as UniformCompositionNextPage, a as UniformGetServerSideProps, b as UniformGetStaticProps, c as UniformPreviewData } from './models-BGg_qtcM.js'; import { NextApiHandler, NextApiRequest } from 'next'; import { RootComponentInstance } from '@uniformdev/canvas'; declare const NextLinkRichTextNode: RichTextRendererComponent; declare function useResolveNextRichTextRenderer(resolveRichTextRenderer?: RenderRichTextComponentResolver): RenderRichTextComponentResolver; declare const UniformRichText: typeof UniformRichText$1; declare const UniformRichTextNode: typeof UniformRichTextNode$1; declare const resolveSlugFromParams: ({ param, params, }: { param: string | undefined; params: ParsedUrlQuery | undefined; }) => string; type ResolveFullPath = (options: { /** The ID of the composition */ id?: string; /** The slug of the composition */ slug?: string; /** The path of the project map node attached to the composition, if there is one */ path?: string; /** The preview locale selected in Visual Canvas, available only if Localization is set up */ locale?: string; }) => string | undefined; type CreatePreviewHandlerGetOptions = { secret?: () => string; /** * Should return the full path to redirect to. Will respond with `400` error if `undefined` is returned. * defaults to a function that returns the `path` if truthy, otherwise returns `slug`. */ resolveFullPath?: ResolveFullPath; /** * The path to the playground page, to live preview components and patterns */ playgroundPath?: string; }; type CreatePreviewHandlerGet = (options?: CreatePreviewHandlerGetOptions) => NextApiHandler; declare const createPreviewHandlerGet: CreatePreviewHandlerGet; type CreatePreviewHandlerPostOptions = { secret?: () => string; enhance?: (composition: RootComponentInstance, context: { req: NextApiRequest; }) => Promise; }; type CreatePreviewHandlerPost = (options?: CreatePreviewHandlerPostOptions) => NextApiHandler; declare const createPreviewHandlerPost: CreatePreviewHandlerPost; type CreatePreviewHandler = (options?: CreatePreviewHandlerGetOptions & CreatePreviewHandlerPostOptions) => NextApiHandler; declare const createPreviewHandler: CreatePreviewHandler; export { type CreatePreviewHandler, type CreatePreviewHandlerGet, type CreatePreviewHandlerGetOptions, type CreatePreviewHandlerPost, type CreatePreviewHandlerPostOptions, NextLinkRichTextNode, type ResolveFullPath, UniformRichText, UniformRichTextNode, createPreviewHandler, createPreviewHandlerGet, createPreviewHandlerPost, resolveSlugFromParams, useResolveNextRichTextRenderer };