UNPKG

@berish/rfp

Version:

Binary secure transport organization protocol for peer communication using function fingerprints

27 lines 1.13 kB
import '@berish/stateful/build/types'; import type { Peer } from '../peer'; import type { PeerLogger } from '../logger'; export declare type PeerStoreType = 'public' | 'private' | 'protected'; declare module '@berish/stateful/build/types' { interface IStatefulScope<T> { storeName: string; storeType: PeerStoreType; logger: PeerLogger; peer: Peer; isConnected: boolean; connect: () => Promise<void>; disconnect: () => void; sync: () => Promise<void>; setStateRemote: (state: Partial<T>) => Promise<void>; setValueRemote: (props: (string | number | symbol)[], value: any) => Promise<void>; reactionSetValueRemote: (callback: (props: (string | number | symbol)[], value: any) => void) => () => void; reactionSetStateRemote: (callback: (state: Partial<T>) => void) => () => void; } interface IStatefulPrivateScope { remoteChanges: [(string | number | symbol)[], any][]; listenId: string; unreceiveSetValue: () => void; unreceiveSetState: () => void; } } //# sourceMappingURL=extension.d.ts.map