/**
 * JSON-RPC dispatcher for WebMailxService.
 * Maps mailxapi action names to WebMailxService method calls.
 * Same dispatch table as desktop jsonrpc.ts but adapted for async settings.
 */
type ServiceLike = Record<string, (...args: any[]) => any>;
export interface RpcRequest {
    _action: string;
    _cbid: string;
    [key: string]: any;
}
export interface RpcResponse {
    _cbid: string;
    result?: any;
    error?: string;
}
/** Dispatch an incoming mailxapi call to the appropriate WebMailxService method */
export declare function dispatch(svc: ServiceLike, req: RpcRequest): Promise<RpcResponse>;
export {};
//# sourceMappingURL=web-jsonrpc.d.ts.map