UNPKG

1.6 kBTypeScriptView Raw
1import { SpawnOptions, SpawnResult } from '@expo/spawn-async';
2import { ExecAsyncOptions } from 'exec-async';
3declare function osascriptExecAsync(script: string | string[], opts?: ExecAsyncOptions): Promise<string>;
4declare function osascriptSpawnAsync(script: string | string[], opts?: SpawnOptions): Promise<SpawnResult>;
5declare function isAppRunningAsync(appName: string): Promise<boolean>;
6declare function safeIdOfAppAsync(appName: string): Promise<string | null>;
7declare function openFinderToFolderAsync(dir: string, activate?: boolean): Promise<void>;
8declare function openInAppAsync(appName: string, pth: string): Promise<SpawnResult>;
9declare function chooseAppAsync(listOfAppNames: string[]): Promise<string | null>;
10declare function chooseEditorAppAsync(preferredEditor?: string): Promise<string | null>;
11declare function chooseTerminalAppAsync(): Promise<string | null>;
12declare function openInEditorAsync(pth: string, preferredEditor?: string): Promise<SpawnResult>;
13declare function openItermToSpecificFolderAsync(dir: string): Promise<SpawnResult>;
14declare function openTerminalToSpecificFolderAsync(dir: string, inTab?: boolean): Promise<SpawnResult>;
15declare function openFolderInTerminalAppAsync(dir: string, inTab?: boolean): Promise<SpawnResult>;
16export { chooseAppAsync, chooseEditorAppAsync, chooseTerminalAppAsync, osascriptExecAsync as execAsync, isAppRunningAsync, openFinderToFolderAsync, openFolderInTerminalAppAsync, openInAppAsync, openInEditorAsync, openItermToSpecificFolderAsync, openTerminalToSpecificFolderAsync, safeIdOfAppAsync, osascriptSpawnAsync as spawnAsync, };