securityos/node_modules/next/dist/build/babel/plugins/next-ssg-transform.d.ts

16 lines
634 B
TypeScript

import type { NodePath, types as BabelTypes } from 'next/dist/compiled/babel/core';
import type { PluginObj } from 'next/dist/compiled/babel/core';
export declare const EXPORT_NAME_GET_STATIC_PROPS = "getStaticProps";
export declare const EXPORT_NAME_GET_STATIC_PATHS = "getStaticPaths";
export declare const EXPORT_NAME_GET_SERVER_PROPS = "getServerSideProps";
type PluginState = {
refs: Set<NodePath<BabelTypes.Identifier>>;
isPrerender: boolean;
isServerProps: boolean;
done: boolean;
};
export default function nextTransformSsg({ types: t, }: {
types: typeof BabelTypes;
}): PluginObj<PluginState>;
export {};