/** * Native Runner * Runs processes directly using Node.js spawn (the original behavior) */ import type { Runner, RunnerType, RunnerStartOptions, RunnerStartResult, RunnerStopOptions, RunnerLogOptions, RunnerStatus, PersistedRunnerState } from './types.js'; export declare class NativeRunner implements Runner { readonly type: RunnerType; private id; private command; private cwd; private process; private pid; private port; private startedAt; private logCursor; private global; constructor(id: string); /** * Set whether this runner uses global storage */ setGlobal(global: boolean): void; /** * Restore state from persisted data (for recovery) */ restore(data: PersistedRunnerState): void; private getLogDir; private getStdoutLogPath; private getStderrLogPath; private ensureLogDir; private isProcessRunning; private detectPortFromLine; start(options: RunnerStartOptions): Promise; stop(options?: RunnerStopOptions): Promise; isRunning(): Promise; getStatus(): Promise; getLogs(options?: RunnerLogOptions): Promise; private countFileLines; detectPort(): Promise; cleanup(): Promise; /** * Initialize cursor to end of file (for recovered servers) */ initializeCursorToEOF(): Promise; /** * Clear log files */ clearLogs(): Promise<{ logDir: string; stdoutPath: string; stderrPath: string; }>; /** * Get log access info */ getLogAccess(): { type: 'file'; logDir: string; stdoutPath: string; stderrPath: string; }; /** * Get log stats for status line */ getLogStats(): { newStdout: number; newStderr: number; }; /** Getters for state persistence */ getId(): string; getCommand(): string; getCwd(): string; getPid(): number; getPort(): number | null; getStartedAt(): Date | null; /** Setters for port (when detected externally) */ setPort(port: number): void; } //# sourceMappingURL=native-runner.d.ts.map