astro-ghostcms/.pnpm-store/v3/files/b3/6d986ec216ba2daa3c386e7218a...

17 lines
790 B
Plaintext
Raw Normal View History

2024-02-14 14:10:47 +00:00
/// <reference types="node" resolution-mode="require"/>
import type nodeFs from 'node:fs';
import type { AstroInlineConfig } from '../../@types/astro.js';
import type { Container } from './container.js';
export declare function shouldRestartContainer({ settings, inlineConfig, restartInFlight }: Container, changedFile: string): boolean;
export declare function restartContainer(container: Container): Promise<Container | Error>;
export interface CreateContainerWithAutomaticRestart {
inlineConfig?: AstroInlineConfig;
fs: typeof nodeFs;
}
interface Restart {
container: Container;
restarted: () => Promise<Error | null>;
}
export declare function createContainerWithAutomaticRestart({ inlineConfig, fs, }: CreateContainerWithAutomaticRestart): Promise<Restart>;
export {};