import type { Runtime, FileStat, CPUInfo, NetworkInterfaces, SpawnResult, BufferEncoding } from './types'; import { RuntimeType } from './types'; export declare class TauriRuntime implements Runtime { readonly runtimeType = RuntimeType.TAURI; fs: { readFile(path: string, encoding?: BufferEncoding): Promise; writeFile(path: string, data: string, encoding?: BufferEncoding): Promise; readDir(path: string): Promise; exists(path: string): Promise; mkdir(path: string, options?: { recursive?: boolean; }): Promise; rm(path: string, options?: { recursive?: boolean; }): Promise; rename(oldPath: string, newPath: string): Promise; stat(path: string): Promise; watch(path: string, callback: (event: string, filename: string | null) => void): void; }; path: { join(...paths: string[]): string; resolve(...paths: string[]): string; dirname(path: string): string; basename(path: string): string; extname(path: string): string; isAbsolute(path: string): boolean; normalize(path: string): string; relative(from: string, to: string): string; }; os: { platform(): Promise; homedir(): Promise; tmpdir(): Promise; hostname(): Promise; cpus(): Promise>; totalmem(): Promise; freemem(): Promise; arch(): Promise; type(): Promise; release(): Promise; networkInterfaces(): Promise; }; process: { env: {}; cwd(): Promise; exit(code?: number): Promise; pid: number; platform: string; argv: never[]; execPath: string; getEnvironmentVariable(key: string): Promise; setEnvironmentVariable(key: string, value: string): Promise; }; childProcess: { exec(command: string): Promise<{ stdout: string; stderr: string; }>; spawn(command: string, args: string[]): Promise; execFile(file: string, args: string[]): Promise<{ stdout: string; stderr: string; }>; }; }