@phren/cli
Version:
Knowledge layer for AI agents - CLI, MCP server, and data layer
19 lines (18 loc) • 732 B
TypeScript
import { type ChildProcess, type ExecFileOptions } from "node:child_process";
export declare function killProbeGroup(child: ChildProcess): void;
export declare function startProbe<T extends ChildProcess>(start: () => T, kill?: (child: T) => void): T;
type Output<T> = {
stdout: T;
stderr: T;
};
type ProbeOptions = ExecFileOptions & {
input?: string;
};
export declare function execProbe(file: string, args: readonly string[], options: ProbeOptions & {
encoding: "buffer";
}): Promise<Output<Buffer>>;
export declare function execProbe(file: string, args: readonly string[], options: ProbeOptions & {
encoding?: BufferEncoding;
}): Promise<Output<string>>;
export declare function stopProbes(): void;
export {};