import type { RpcCommand, RpcExtensionUIRequest, RpcResponse } from "./rpc-types.ts";
export type RpcOutputRecord = RpcResponse | RpcExtensionUIRequest | object;
export type RpcOutput = (obj: RpcOutputRecord) => void;
export declare function createRpcSuccessResponse<T extends RpcCommand["type"]>(id: string | undefined, command: T, data?: object | null): RpcResponse;
export declare function createRpcErrorResponse(id: string | undefined, command: string, message: string): RpcResponse;
export declare function formatRpcErrorMessage(error: unknown): string;
export declare function parseRpcContextWindow(value: number | string): number;
//# sourceMappingURL=rpc-responses.d.ts.map