@promptbook/vercel
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
34 lines (33 loc) • 952 B
TypeScript
import type { RequireAtLeastOne } from 'type-fest';
import type { string_executable_path } from '../types/typeAliases';
/**
* Options for locating any application
*/
export type LocateAppOptions = {
/**
* Name of the application
*/
appName: string;
/**
* Name of the executable on Linux
*/
linuxWhich?: string;
/**
* Path suffix on Windows
*/
windowsSuffix?: string;
/**
* Name of the application on macOS
*/
macOsName?: string;
};
/**
* Locates an application on the system
*
* @private within the repository
*/
export declare function locateApp(options: RequireAtLeastOne<LocateAppOptions, 'linuxWhich' | 'windowsSuffix' | 'macOsName'>): Promise<string_executable_path | null>;
/**
* TODO: [🧠][♿] Maybe export through `@promptbook/node`
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
*/