Files
Moltbot/src/infra/scripts-modules.d.ts
2026-02-17 15:50:07 +09:00

39 lines
1017 B
TypeScript

declare module "../../scripts/run-node.mjs" {
export const runNodeWatchedPaths: string[];
export function runNodeMain(params?: {
spawn?: (
cmd: string,
args: string[],
options: unknown,
) => {
on: (
event: "exit",
cb: (code: number | null, signal: string | null) => void,
) => void | undefined;
};
spawnSync?: unknown;
fs?: unknown;
stderr?: { write: (value: string) => void };
execPath?: string;
cwd?: string;
args?: string[];
env?: NodeJS.ProcessEnv;
platform?: NodeJS.Platform;
}): Promise<number>;
}
declare module "../../scripts/watch-node.mjs" {
export function runWatchMain(params?: {
spawn?: (
cmd: string,
args: string[],
options: unknown,
) => { on: (event: "exit", cb: (code: number | null, signal: string | null) => void) => void };
process?: NodeJS.Process;
cwd?: string;
args?: string[];
env?: NodeJS.ProcessEnv;
now?: () => number;
}): Promise<number>;
}