import { type CodexNativeClientOptions, type CodexNativeMetadata } from "./codex-native-types.js"; /** Internal RPC transport, deliberately not exported through the public adapter. */ export declare class CodexNativeRpc { private transport; readonly timeoutMs: number; readonly metadata: CodexNativeMetadata; private sequence; private closed; private pending; private listeners; private unlisten; private constructor(); static connect(options: CodexNativeClientOptions): Promise; onEvent(listener: (message: Record) => void): () => void; call(method: string, params: unknown, mutation?: boolean): Promise; respond(id: string | number, result: unknown): void; close(): void; private receive; private receiveResponse; private finish; }