interface RpcRequest {
    method: 'judge' | 'listRubrics' | 'version';
    params?: unknown;
}
interface RpcSuccess {
    result: unknown;
}
interface RpcError {
    error: {
        code: string;
        message: string;
        details?: unknown;
    };
}
export declare function dispatchRpc(req: RpcRequest): Promise<RpcSuccess | RpcError>;
/** Read one JSON request from stdin, write one JSON response to stdout. */
export declare function runRpcOnce(method?: string): Promise<number>;
/** Read JSONL requests from stdin, write JSONL responses to stdout. */
export declare function runRpcBatch(method?: string): Promise<number>;
export {};
//# sourceMappingURL=rpc.d.ts.map