import 'reflect-metadata'; export declare namespace UtilsOs { /** * check if script is running in client browser * (websql model -> is also considered as browser * because it is running in browser) */ const isRunningInBrowser: () => boolean; /** * check if script is running in nodejs * (backend script or electron script) */ const isRunningInNode: () => boolean; /** * check if script is running special * browser mode that has sql.js backend * and executes sql queries in browser */ const isRunningInWebSQL: () => boolean; const isRunningInSSRMode: () => boolean; /** * check whether the current process is running inside * Electron backend or browser. */ const isRunningInElectron: () => boolean; /** * Check whether the current process is running inside * a Visual Studio Code extension. */ const isRunningInVscodeExtension: () => boolean; /** * Check wether the current process is running inside * windows subsystem for linux (WSL). */ const isRunningInWsl: () => boolean; const isRunningInWindowsPowerShell: () => boolean; const isRunningInWindowsCmd: () => boolean; const isRunningInDocker: () => boolean; const isRunningInLinuxGraphicsCapableEnvironment: () => boolean; const isRunningInOsWithGraphicsCapableEnvironment: () => boolean; /** * Check whether the current process is running in CLI mode. */ const isRunningInCliMode: () => boolean; /** * Check whether the current process is running in mocha test. */ const isRunningInMochaTest: () => boolean; /** * Checks if a given port is already in use (bound by another process). * * @param port - The port number to check. * @param host - The hostname or IP address to bind to (default: '127.0.0.1'). * @returns Promise - Resolves to `true` if the port is in use, otherwise `false`. */ const isPortInUse: (port: number, options?: { /** * '127.0.0.1' etc.. */ checkForSpecificOnlyHost?: string; }) => Promise; /** * Check if docker is available on this system * and it is running (daemon active) */ const isDockerAvailable: () => Promise; const openFolderInFileExplorer: (folderPath: string) => void; const getRealHomeDir: () => string; type Editor = 'code' | 'codium' | 'cursor' | 'theia' | 'idea' | 'idea64'; type EditorProcess = `${Editor}` | 'code-oss'; const EditorArr: Editor[]; const EDITOR_PROCESSES: Record; const killAllEditor: (editor: EditorProcess) => void; const detectEditor: (options?: { fallbackCheckCommandExists?: boolean; }) => Editor | undefined; const getEditorSettingsJsonPath: (editor: Editor, platform?: NodeJS.Platform, env?: NodeJS.ProcessEnv) => string | undefined; const isRunningNodeDebugger: () => boolean; const isNodeVersionOk: (options?: { required?: string; log?: boolean; throwErrorIfNotOk?: boolean; }) => boolean; const isElectron: boolean; const isBrowser: boolean; const isNode: boolean; const isWebSQL: boolean; const isVscodeExtension: boolean; const isSSRMode: boolean; const isRunningInWindows: boolean; const commandExistsAsync: (commandName: string) => Promise; /** * @deprecated use commandExistsAsync */ const commandExistsSync: (commandName: string) => boolean; const pipxPackageExists: (packageName: string) => Promise; const pipxNestedPackageExists: (mainPackageName: string, targetNestedFromMainPackage: string) => Promise; const pythonModuleExists: (moduleName: string, pythonPath?: string) => Promise; const drawLine: (col?: number) => void; function getInotifyWatchCount(): Promise; const sendNotification: (opt: { title: string; body: string; subtitle?: string; appName?: string; iconPath?: string; timeoutMs?: number; doneCallback?: () => any; }) => Promise; } declare let taonRepoPathUserInUserDir: string; declare const taonBasePathToGlobalDockerTemplates: string; export { taonRepoPathUserInUserDir, taonBasePathToGlobalDockerTemplates };