import type { GetStaticProps, PreviewData } from 'next'; import type { ParsedUrlQuery } from 'querystring'; import { getTranslationsSnapshot } from 'gt-react'; type TranslationsSnapshot = Awaited>; type GTStaticProps = { locale: string; translations: TranslationsSnapshot; }; export type WithGTStaticProps = Record> = Props & GTStaticProps; /** * Wraps a Pages Router getStaticProps() function with locale-specific GT props. * Next.js Pages Router locale routing must be configured so getStaticProps() * runs once for each locale. */ export declare function withGTStaticProps = Record, Params extends ParsedUrlQuery = ParsedUrlQuery, Preview extends PreviewData = PreviewData>(getStaticProps?: GetStaticProps): GetStaticProps, Params, Preview>; export type WithGTStaticPropsFunction = typeof withGTStaticProps; export {}; //# sourceMappingURL=withGTStaticProps.d.ts.map