import { ChannelId, Allocation, ChannelResult, ChannelStatus } from '../data-types'; import { JsonRpcRequest, JsonRpcResponse, JsonRpcError } from '../jsonrpc-header-types'; import { ErrorCodes as AllCodes } from '../error-codes'; export interface UpdateChannelParams { channelId: ChannelId; allocations: Allocation[]; appData: string; } export declare type UpdateChannelRequest = JsonRpcRequest<'UpdateChannel', UpdateChannelParams>; export declare type UpdateChannelResponse = JsonRpcResponse; declare type ErrorCodes = AllCodes['UpdateChannel']; export declare type ChannelNotFound = JsonRpcError; export declare type InvalidTransition = JsonRpcError; export declare type InvalidAppData = JsonRpcError; export declare type NotYourTurn = JsonRpcError; export declare type ChannelClosed = JsonRpcError; export declare type UpdateChannelError = ChannelNotFound | InvalidTransition | InvalidAppData | NotYourTurn | ChannelClosed; export {}; //# sourceMappingURL=UpdateChannel.d.ts.map