import { ProtoframeDescriptor, Protoframe } from 'protoframe'; export interface Protocol extends Protoframe { openForm: { body: { data: Buffer; name: string }; response: {}; }; sendAppEvent: { body: { name: string; params: Array }; }; signalAppEvent: { body: { name: string; params: Array }; }; signalReady: { body: {}; }; setDataPart: { body: { path: string; data: string }; }; getDataPart: { body: { path: string }; response: { data: string | undefined }; }; } export const protocol: ProtoframeDescriptor = { type: 'form' };