export interface DaemonHost { cwd: string; environment: NodeJS.ProcessEnv; executablePath: string; executableArguments: readonly string[]; scriptPath: string; directoryCreate(path: string): Promise; fileCreate(path: string, contents: string): Promise; fileExists(path: string): Promise; fileRead(path: string): Promise; fileRemove(path: string): Promise; processStart(input: { arguments_: readonly string[]; cwd: string; environment: NodeJS.ProcessEnv; executablePath: string; logPath: string; pidPath: string; }): Promise; processAlive(pid: number): boolean; processTreeAlive(pid: number): boolean; processTreeSignal(pid: number, signal: NodeJS.Signals): void; wait(milliseconds: number): Promise; log(message: string): void; } export type ParsedDaemonCommand = { action: "help" | "invalid" | "stop"; } | { action: "start"; configPath?: string; }; export declare function parseDaemonCommand(arguments_: readonly string[]): ParsedDaemonCommand; export declare function daemonStart(options: { configPath?: string; }, host?: DaemonHost): Promise; export declare function daemonStop(host?: DaemonHost): Promise; export declare function daemonUsage(): string; export declare function createDaemonHost(): DaemonHost; //# sourceMappingURL=daemon.d.ts.map