mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-27 11:56:20 +00:00
23 lines
957 B
TypeScript
23 lines
957 B
TypeScript
type SharedLocalShellType = "posix" | "fish" | "powershell" | "cmd" | "unknown";
|
|
type SharedLocalOs = "linux" | "macos" | "windows";
|
|
|
|
declare module "./localShell.cjs" {
|
|
export function detectLocalOs(platformLike?: string): SharedLocalOs;
|
|
export function classifyLocalShellType(
|
|
shellPath: string | undefined,
|
|
platformLike?: string,
|
|
): SharedLocalShellType;
|
|
export function isWindowsAppExecutionAliasPath(filePath: string): boolean;
|
|
export function isDiscoveredGitBash(shell?: string, discoveredCommand?: string): boolean;
|
|
}
|
|
|
|
declare module "@/lib/localShell.cjs" {
|
|
export function detectLocalOs(platformLike?: string): SharedLocalOs;
|
|
export function classifyLocalShellType(
|
|
shellPath: string | undefined,
|
|
platformLike?: string,
|
|
): SharedLocalShellType;
|
|
export function isWindowsAppExecutionAliasPath(filePath: string): boolean;
|
|
export function isDiscoveredGitBash(shell?: string, discoveredCommand?: string): boolean;
|
|
}
|