import { type CodexCorpusAdmission } from "./codex-corpus-write.js"; export { SUPPORTED_CODEX_HOOK_VERSIONS } from "./codex-native-compatibility.js"; export interface CodexHookRpc { version: string; processId?: number; /** How the owned client's corpus lease was admitted; absent on synthetic clients. */ admission?: CodexCorpusAdmission; request(method: string, params: unknown): Promise; close(): Promise; } /** An owned, short-lived native client. It cannot reload other app servers. */ export declare function connectCodexHookRpc(options: { command: string; home: string; codexHome?: string; timeoutMs?: number; }): Promise;