19 lines
953 B
TypeScript
19 lines
953 B
TypeScript
declare function nodeLauncherEnvironment(environment?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
declare function mnemonNpmLauncher(command: string): string | undefined;
|
|
declare function resolveMnemonInvocation(command: string, args: readonly string[], env?: NodeJS.ProcessEnv): {
|
|
command: string;
|
|
args: string[];
|
|
env?: NodeJS.ProcessEnv;
|
|
};
|
|
interface CommandDiscoveryOptions {
|
|
platform?: NodeJS.Platform;
|
|
env?: NodeJS.ProcessEnv;
|
|
home?: string;
|
|
isExecutable?: (path: string) => boolean;
|
|
}
|
|
declare function isMnemonExecutable(path: string, platform?: NodeJS.Platform): boolean;
|
|
declare function invalidateMnemonCommandCache(): void;
|
|
declare function findMnemonCommand(config: {
|
|
cliPath?: string | undefined;
|
|
}, options?: CommandDiscoveryOptions): string | undefined;
|
|
export { CommandDiscoveryOptions, findMnemonCommand, invalidateMnemonCommandCache, isMnemonExecutable, mnemonNpmLauncher, nodeLauncherEnvironment, resolveMnemonInvocation }; |