/* tslint:disable */ /* eslint-disable */ /* auto-generated by NAPI-RS */ /** * Reads the baseboard product from the Windows registry * (`HKLM\HARDWARE\DESCRIPTION\System\BIOS\BaseBoardProduct`). * * Resolves with the trimmed product string, or rejects if the value is missing * or the platform is not Windows. */ export declare function getBaseboardFromRegistry(): Promise /** * Reads the baseboard product from the raw SMBIOS firmware table via * `GetSystemFirmwareTable('RSMB')` and parses the Baseboard (Type 2) `Product`. * * Resolves with the product string (empty if absent), or rejects if the * platform is not Windows. */ export declare function getBaseboardFromSmbios(): Promise export interface ProfileVersion { profileId: number error?: string version?: string } export declare function checkVersionInAllFolders(dirs: Array): Array export declare function generateZipPatch(oldFilePath: string, newFilePath: string): Promise> /** * Generates a zip patch file and returns the path to a temporary file if the patch is reasonable. * Returns None if the patch would be larger than the original file size (or 90% for files > 3MB). * The caller is responsible for cleaning up the temporary file. */ export declare function generateZipPatchFile(oldFilePath: string, newFilePath: string): Promise export declare function applyZipPatch(basePath: string, patch: Array, targetPath: string): Promise /** * Applies a zip patch from a file. Automatically cleans up temporary patch files * created by generate_zip_patch_file, but leaves other files untouched for safety. */ export declare function applyZipPatchFile(basePath: string, patchFilePath: string, targetPath: string): Promise /** * Downloads a file directly to disk without loading it into memory. * This is the recommended method for large files (>100MB) to avoid OOM. */ export declare function downloadToFileWithProgress(url: string, targetPath: string, callback: (...args: any[]) => any): object export declare function exportEntireLeveldb(dbPath: string): Promise> export declare function importLevelDb(levelDbPath: string, levelDbJsonData: string): Promise export declare function proxyCheckHttp(ip: string, port: number, username: string | undefined | null, password: string | undefined | null, domain: string, useHttps?: boolean | undefined | null): Promise export declare function proxyCheckSocks5H(ip: string, port: number, username: string | undefined | null, password: string | undefined | null, domain: string): Promise export declare function proxyCheckSocks5(ip: string, port: number, username: string | undefined | null, password: string | undefined | null, domain: string): Promise export interface LoginData { username: string password: string } export interface LoginCreationParams { username: string password: string url: string usernameField: string passwordField: string } export declare function sqliteAddLoginPassword(filepath: string, loginParams: LoginCreationParams): Promise export declare function createSqliteLoginDatabase(path: string): Promise export interface Cookie { name: string value: string domain: string path: string expirationDate: number hostOnly?: boolean session?: boolean httpOnly?: boolean secure?: boolean sameSite?: string } export declare function sqliteGetVersion(filepath: string): Promise export declare function sqliteAddCookies(filepath: string, cookies: Array): Promise export declare function sqliteGetCookies(filepath: string): Promise> export declare function migrateCookies(filepath: string): Promise export declare function repairCookiePartitionKeys(filepath: string): Promise export declare function getSystemInfo(): unknown export declare function unzipToFolder(inputZip: string, outputDir: string): Promise export declare function archivateFolder(outputFile: string, inputDir: string, fileList: Array, excludeFileList?: Array | undefined | null): Promise export declare function validateArchive(archivePath: string): Promise export declare function setForegroundByPid(pid: number): boolean | number export declare function isProcessRunning(pid: number): boolean export declare function killProcessByPid(pid: number): number export declare function closeProcessByPid(pid: number): number /** * Evenly tiles the windows belonging to the supplied PIDs on the primary * display. * * The algorithm determines a nearly-square grid that can fit all windows (e.g. * 2 → 1 × 2, 4 → 2 × 2, 6 → 2 × 3). Platform-specific code is responsible * only for obtaining the screen size and positioning a window. All layout * logic remains here to avoid duplication across operating systems. */ export declare function tileWindowsEvenly(pids: Array): void export declare function rustLoggerInit(): void export declare function getVersion(): string