import { Plugin } from 'vite'; import { CleoTypeProviderOpts } from '../lib/includes.js'; import { RenderRouteOptions, RenderFragmentOptions } from '../lib/view/render.js'; export { SharedRenderRouteOptions } from '../lib/view/render.js'; export { RouteInfo } from '../lib/routes.js'; export { getHref as originalGetHref, createRouterConfig } from '../lib/routes.js'; export { defineCleoConfig, CleoConfig, CleoConfigCtx } from '../cleoConfig.js'; export { Helmet } from 'react-helmet'; export { DefaultLayoutProps } from '../layouts/default.js'; declare module 'fastify' { interface FastifyReply { html: (content: string) => FastifyReply; render:
(options: RenderRouteOptions
) => FastifyReply; renderFragment:
(options: RenderFragmentOptions
) => FastifyReply;
}
}
export interface CleoPluginOpts {
prerender?: boolean;
typeProvider?: CleoTypeProviderOpts;
}
export declare function ensureCleoDirs(): Plugin;
export declare function chainBuild(opts: CleoPluginOpts): Promise