export interface MiraRuntimePaths { cwd: string; home: string; logicalCwd?: string; allowedPathCandidates: string[]; } export interface MiramcpPatchResult { configPath: string; changed: boolean; added: string[]; skipped?: string; } export type MiramcpAutostartStatus = 'started' | 'started_pending' | 'already_running' | 'disabled' | 'missing_device_id' | 'missing_bin' | 'missing_config' | 'invalid_config' | 'spawn_failed'; export interface MiramcpAutostartResult { status: MiramcpAutostartStatus; configPath: string; pidFile: string; deviceId?: string; binPath?: string; pid?: number; error?: string; } type SpawnLike = (command: string, args: readonly string[], options: { detached: true; stdio: 'ignore'; env: NodeJS.ProcessEnv; }) => { pid?: number; unref?: () => void; once?: (event: 'error' | 'exit', listener: (...args: any[]) => void) => unknown; }; type SpawnSyncLike = (command: string, args: readonly string[], options: { encoding: 'utf8'; timeout: number; stdio: 'pipe'; }) => { stdout?: string | Buffer | null; error?: unknown; }; export interface MiramcpAutostartOptions { configPath?: string; pidFile?: string; binPath?: string; mircliBin?: string; env?: NodeJS.ProcessEnv; spawnImpl?: SpawnLike; spawnSyncImpl?: SpawnSyncLike; processExists?: (pid: number) => boolean; startupTimeoutMs?: number; } export declare function getMiraRuntimePaths(opts?: { cwd?: string; home?: string; envPwd?: string; realHome?: string; }): MiraRuntimePaths; export declare function ensureMiramcpSandboxAllows(paths: string[], configPath?: string): MiramcpPatchResult; export declare function ensureMiramcpBridgeStarted(opts?: MiramcpAutostartOptions): MiramcpAutostartResult; export {}; //# sourceMappingURL=mir-local-runtime.d.ts.map