/** Host dispatcher for the plugin-owned Connection RPC channel. */ import type { RpcResult } from './rpc-contract.ts'; import type { CodexAuthState, CodexLoginMethod, CodexNetworkState, CodexProxyMode, CodexResetCreditsSnapshot, CodexResetRedeemOutcome, CodexUsageSnapshot } from './types.ts'; export { CODEX_AUTH_RPC_CHANNEL } from './rpc-contract.ts'; /** Complete Host surface behind the browser-safe plugin channel. */ export interface CodexRpcService { status(): Promise; network(): Promise; setProxyMode(mode: CodexProxyMode): Promise; usage(): Promise; resetCredits(): Promise; redeemResetCredit(creditId: string | null): Promise; login(method: CodexLoginMethod): CodexAuthState; cancel(): Promise; logout(): Promise; } /** Dispatch a decoded Host request without exposing token material. */ export declare function handleCodexAuthRpc(service: CodexRpcService, endpoint: string, payload: unknown): Promise>;