import 'reflect-metadata'; /** * check if script is running in client browser * (websql model -> is also considered as browser * because it is running in browser) */ export declare const UtilsOs__NS__isRunningInBrowser: () => boolean; /** * check if script is running in nodejs * (backend script or electron script) */ export declare const UtilsOs__NS__isRunningInNode: () => boolean; /** * check if script is running special * browser mode that has sql.js backend * and executes sql queries in browser */ export declare const UtilsOs__NS__isRunningInWebSQL: () => boolean; export declare const UtilsOs__NS__isRunningInSSRMode: () => boolean; /** * check whether the current process is running inside * Electron backend or browser. */ export declare const UtilsOs__NS__isRunningInElectron: () => boolean; /** * Check whether the current process is running inside * a Visual Studio Code extension. */ export declare const UtilsOs__NS__isRunningInVscodeExtension: () => boolean; /** * Check wether the current process is running inside * windows subsystem for linux (WSL). */ export declare const UtilsOs__NS__isRunningInWsl: () => boolean; export declare const UtilsOs__NS__isRunningInWindowsPowerShell: () => boolean; export declare const UtilsOs__NS__isRunningInWindowsCmd: () => boolean; export declare const UtilsOs__NS__isRunningInDocker: () => boolean; export declare const UtilsOs__NS__isRunningInLinuxGraphicsCapableEnvironment: () => boolean; export declare const UtilsOs__NS__isRunningInOsWithGraphicsCapableEnvironment: () => boolean; /** * Check whether the current process is running in CLI mode. */ export declare const UtilsOs__NS__isRunningInCliMode: () => boolean; /** * Check whether the current process is running in mocha test. */ export declare const UtilsOs__NS__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`. */ export declare const UtilsOs__NS__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) */ export declare const UtilsOs__NS__isDockerAvailable: () => Promise; export declare const UtilsOs__NS__openFolderInFileExplorer: (folderPath: string) => void; export declare const UtilsOs__NS__getRealHomeDir: () => string; export type UtilsOs__NS__Editor = 'code' | 'codium' | 'cursor' | 'theia' | 'idea' | 'idea64'; export type UtilsOs__NS__EditorProcess = `${UtilsOs__NS__Editor}` | 'code-oss'; export declare const UtilsOs__NS__EditorArr: UtilsOs__NS__Editor[]; export declare const UtilsOs__NS__EDITOR_PROCESSES: Record; export declare const UtilsOs__NS__killAllEditor: (editor: UtilsOs__NS__EditorProcess) => void; export declare const UtilsOs__NS__detectEditor: (options?: { fallbackCheckCommandExists?: boolean; }) => UtilsOs__NS__Editor | undefined; export declare const UtilsOs__NS__getEditorSettingsJsonPath: (editor: UtilsOs__NS__Editor, platform?: NodeJS.Platform, env?: NodeJS.ProcessEnv) => string | undefined; export declare const UtilsOs__NS__isRunningNodeDebugger: () => boolean; export declare const UtilsOs__NS__isNodeVersionOk: (options?: { required?: string; log?: boolean; throwErrorIfNotOk?: boolean; }) => boolean; export declare const UtilsOs__NS__isElectron: boolean; export declare const UtilsOs__NS__isBrowser: boolean; export declare const UtilsOs__NS__isNode: boolean; export declare const UtilsOs__NS__isWebSQL: boolean; export declare const UtilsOs__NS__isVscodeExtension: boolean; export declare const UtilsOs__NS__isSSRMode: boolean; export declare const UtilsOs__NS__isRunningInWindows: boolean; export declare const UtilsOs__NS__commandExistsAsync: (commandName: string) => Promise; /** * @deprecated use commandExistsAsync */ export declare const UtilsOs__NS__commandExistsSync: (commandName: string) => boolean; export declare const UtilsOs__NS__pipxPackageExists: (packageName: string) => Promise; export declare const UtilsOs__NS__pipxNestedPackageExists: (mainPackageName: string, targetNestedFromMainPackage: string) => Promise; export declare const UtilsOs__NS__pythonModuleExists: (moduleName: string, pythonPath?: string) => Promise; export declare const UtilsOs__NS__drawLine: (col?: number) => void; export declare function UtilsOs__NS__getInotifyWatchCount(): Promise; export declare const UtilsOs__NS__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 };