kjelsrud.dev/node_modules/astro/dist/vite-plugin-astro-server/plugin.d.ts

20 lines
734 B
TypeScript
Raw Normal View History

2023-07-19 21:31:30 +02:00
/// <reference types="node" />
import type fs from 'node:fs';
import type * as vite from 'vite';
import type { AstroSettings, SSRManifest } from '../@types/astro';
import type { LogOptions } from '../core/logger/core.js';
export interface AstroPluginOptions {
settings: AstroSettings;
logging: LogOptions;
fs: typeof fs;
}
export default function createVitePluginAstroServer({ settings, logging, fs: fsMod, }: AstroPluginOptions): vite.Plugin;
/**
* It creates a `SSRManifest` from the `AstroSettings`.
*
* Renderers needs to be pulled out from the page module emitted during the build.
* @param settings
* @param renderers
*/
export declare function createDevelopmentManifest(settings: AstroSettings): SSRManifest;