forked from openclaw/openclaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode-runtime-recovery.d.mts
More file actions
37 lines (36 loc) 路 1.28 KB
/
Copy pathnode-runtime-recovery.d.mts
File metadata and controls
37 lines (36 loc) 路 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
export function consumeLauncherRootOptionToken(args: string[], index: number): number;
export function isForegroundGmailRunInvocation(argv: string[]): boolean;
export function isNativeHookRelayInvocation(argv: string[]): boolean;
export function resolveRecoveryPath(
value: string | null | undefined,
homeDir?: string | null,
options?: { allowMissing?: boolean; allowCwd?: boolean; trustedRoot?: string },
): string | null;
export function isUsableNode(
nodePath: string,
options?: {
allowCwd?: boolean;
trustedRoot?: string;
env?: NodeJS.ProcessEnv;
acceptVersion?: (version: string) => boolean;
},
): boolean;
export function runRespawnedChild(command: string, args: string[], env: NodeJS.ProcessEnv): true;
export function recoverNodeRuntime(options?: {
homeDir?: string;
allowInstall?: boolean;
env?: NodeJS.ProcessEnv;
}): Promise<boolean>;
export type NodeRuntimeInstallCommand = (
command: string,
args: string[],
env: NodeJS.ProcessEnv,
) => Promise<number | null>;
export function findUsableNodeRuntime(options?: {
homeDir?: string;
allowInstall?: boolean;
env?: NodeJS.ProcessEnv;
acceptVersion?: (version: string) => boolean;
nodeVersion?: string;
installCommand?: NodeRuntimeInstallCommand;
}): Promise<{ nodePath: string; reason: string } | null>;