import { Logger, Plugin } from 'vite'; export interface MkcertPluginOptions { /** Directory containing `localhost.pem` and `localhost-key.pem`. */ certDir?: string; } export interface ResolveServerHttpsConfigResult { serverHttps: { cert: string | Buffer; key: string | Buffer; }; message: string[]; source: 'mkcert' | 'self-signed'; } /** * Resolve the Vite `server.https` config for local dev, plus a user-facing * message describing which cert source was used. Exported so callers (and * tests) can exercise the underlying logic without a fake Vite plugin * context. */ export declare function resolveServerHttpsConfig(certDir: string): Promise; export declare function formatBanner(lines: string[]): string[]; /** * Print the certificate-source banner via the supplied logger, but only the * first time it is called in a Node process. Exported so tests can exercise * the banner pipeline without having to fake a full `ResolvedConfig`. */ export declare function emitBannerOnce(logger: Logger, message: string[]): void; export declare function mkcertPlugin({ certDir, }?: MkcertPluginOptions): Plugin;