import { ILoggerService, IStoreService, MethodName, MethodParam, MethodResult, Opcode, NetworkContexts, ProtocolMessage } from "@connext/types"; import { StateChannel } from "./models"; export declare const PersistAppType: { CreateProposal: "CreateProposal"; RemoveProposal: "RemoveProposal"; CreateInstance: "CreateInstance"; UpdateInstance: "UpdateInstance"; RemoveInstance: "RemoveInstance"; Reject: "Reject"; }; export declare type PersistAppType = typeof PersistAppType[keyof typeof PersistAppType]; export declare const PersistCommitmentType: { CreateWithdrawal: "CreateWithdrawal"; UpdateWithdrawal: "UpdateWithdrawal"; }; export declare type PersistCommitmentType = typeof PersistCommitmentType[keyof typeof PersistCommitmentType]; export declare const PersistStateChannelType: { readonly CreateChannel: "CreateChannel"; readonly SyncProposal: "SyncProposal"; readonly SyncInstall: "SyncInstall"; readonly SyncUninstall: "SyncUninstall"; readonly SyncAppInstances: "SyncAppInstances"; readonly NoChange: "NoChange"; readonly SyncRejectedProposals: "SyncRejectedProposals"; }; export declare type PersistStateChannelType = keyof typeof PersistStateChannelType; export interface IPrivateKeyGenerator { (s: string): Promise; } export declare type ProtocolExecutionFlow = { [x: number]: (context: Context) => AsyncIterableIterator; }; export declare type Instruction = Function | Opcode; export interface Context { store: IStoreService; log: ILoggerService; message: ProtocolMessage; networks: NetworkContexts; preProtocolStateChannel?: StateChannel; } export declare type MethodMessage = { type: MethodName; requestId: string; }; export declare type MethodRequest = MethodMessage & { params: MethodParam; }; export declare type MethodResponse = MethodMessage & { result: MethodResult; }; export declare type ControllerExecutionResult = { updatedChannel?: StateChannel; result: MethodResult; }; //# sourceMappingURL=types.d.ts.map