UNPKG

@agility/nextjs

Version:

Agility CMS support for NextJS 16 and Next Image

16 lines (15 loc) 879 B
import { AgilityGetStaticPropsContext, IGetDynamicPageURLProps } from "./types"; import { AgilityPageProps } from "./types"; declare const getAgilityPageProps: ({ params, preview, locale, defaultLocale, getModule, globalComponents, apiOptions, }: AgilityGetStaticPropsContext) => Promise<AgilityPageProps>; declare const getAgilityPaths: ({ preview, locales, defaultLocale, }: { preview: any; locales: any; defaultLocale: any; }) => Promise<string[]>; declare const validatePreview: ({ agilityPreviewKey, slug }: any) => Promise<{ error: boolean; message: string; }>; declare const generatePreviewKey: () => Promise<any>; declare const getDynamicPageURL: ({ contentID, preview, slug, locale }: IGetDynamicPageURLProps) => Promise<string>; export { getAgilityPageProps, getAgilityPaths, validatePreview, generatePreviewKey, getDynamicPageURL };