export declare const DEFAULT_POCODEX_APP_PATH = "/Applications/Codex.app"; export type PocodexState = "starting" | "running" | "stopped" | "error"; export interface PocodexRuntimeOptions { appPath: string; cwd: string; devMode: boolean; listenHost: string; listenPort: number; token: string; } export interface PocodexSnapshot { state: PocodexState; appPath: string; codexVersion: string | null; lastError: string | null; listenHost: string; listenPort: number; localOpenUrl: string | null; localUrl: string | null; networkOpenUrl: string | null; networkUrl: string | null; tokenConfigured: boolean; } export interface PocodexRuntime { getSnapshot(): PocodexSnapshot; off(event: "error", listener: (error: Error) => void): this; off(event: "snapshot", listener: (snapshot: PocodexSnapshot) => void): this; on(event: "error", listener: (error: Error) => void): this; on(event: "snapshot", listener: (snapshot: PocodexSnapshot) => void): this; restart(nextOptions?: Partial): Promise; start(): Promise; stop(): Promise; } export declare function createPocodexRuntime(options: PocodexRuntimeOptions): PocodexRuntime;