/** * @athenna/vite * * (c) João Lenon * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { Vite } from '#src/vite/Vite'; import type { ViteDevServer } from 'vite'; import type { FastifyInstance } from 'fastify'; import type { FastifyViteOptions } from '#src/types'; import { Macroable } from '@athenna/common'; export declare class FastifyVite extends Macroable { scope: FastifyInstance; vite: Vite; devServer: ViteDevServer; options: FastifyViteOptions; constructor(scope: FastifyInstance, options: FastifyViteOptions); /** * Return vite dev server instance. Only available * after calling `ready()` method. */ getServer(): ViteDevServer; /** * Return vite helper instance. Only available * after calling `ready()` method. */ getVite(): Vite; /** * Load vite configuration file and start the dev server. * Will not start the dev server if in production. */ ready(): Promise; } declare const _default: (scope: FastifyInstance, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>, options: Record) => Promise; export default _default;