import type { Context } from '@deepseek-ai/cordis'; /** Loose ApiProxy surface used by catalog + model helpers. */ export type ApiProxySessions = { list?: (req: { rpcId: string; payload: unknown; }) => Promise; models?: (req: { rpcId: string; payload: unknown; }) => Promise; selectModel?: (req: { rpcId: string; payload: unknown; }) => Promise; }; export type ApiProxyLike = { workspace?: { list?: (req: { rpcId: string; payload: unknown; }) => Promise; }; sessions?: ApiProxySessions; }; /** * Resolve host apiProxy without requiring Cordis inject. * Direct `ctx.apiProxy` throws "cannot get property without inject" on real fibers. */ export declare function resolveApiProxy(ctx: Context): ApiProxyLike | undefined;