format export type FlipperPluginReceiverRes = object | string | number | boolean | null | undefined | void ; export type FlipperPluginReceiver = ( data : any ) => FlipperPluginReceiverRes | Promise < FlipperPluginReceiverRes > ; export interface FlipperPluginConnection { param method param params send ( method , params ? ) : void ; param method param receiver receive ( method , receiver ) : void ; } export interface FlipperPlugin { return getId ( ) : string ; /**
     * Called when a connection has been established. The connection passed to this method is valid
     * until  FlipperPlugin is called.
      onConnect ( connection ) : void ; /**
     * Called when the connection passed to `FlipperPlugin#onConnect(FlipperConnection)` is no
     * longer valid. Do not try to use the connection in or after this method has been called.
     */ onDisconnect ( ) : void ; /**
     * Returns true if the plugin is meant to be run in background too, otherwise it returns false.
     */ runInBackground ? ( ) : boolean ; }