import { ComponentPluginFactory } from '@teleporthq/teleport-types'; /** * The server half of page protection, per page. A page the middleware gates * (`PageAccess.resolvePageAccessPolicy` — its own route table) renders with * getServerSideProps whose first statement is * * const __tqAccessDenied = await __tqPageAccess.guardPageAccess(context, ) * if (__tqAccessDenied) return __tqAccessDenied * * (`utils/auth/page-access.js`, emitted with the middleware). Its data is * therefore read only for a visitor the policy admits, and it never has a * getStaticProps: that output is a static JSON (`/_next/data//.json`) * any visitor can fetch, and Next 12 serves it without running the middleware * on a site with languages. A page without a data function gets one that * only runs the guard; every other page comes out exactly as before. * * Registered after the getServerSideProps finalizer, so every plugin that * fills the 'getStaticProps' chunk by name has run. */ export declare const createPageAccessGuardPlugin: ComponentPluginFactory>; //# sourceMappingURL=page-access-guard-plugin.d.ts.map