textiot
Version:
A framework for building web and native (IoT) Dapps on the IPFS network
25 lines (24 loc) • 2.6 kB
TypeScript
import { INotification, IThread, IContact, EventSubscription, FeedItemData, ICafeSyncGroupStatus } from './model';
export declare function addNodeStartedListener(listener: () => void): EventSubscription;
export declare function addNodeFailedToStartListener(listener: (error: string) => void): EventSubscription;
export declare function addNodeStoppedListener(listener: () => void): EventSubscription;
export declare function addNodeFailedToStopListener(listener: (error: string) => void): EventSubscription;
export declare function addNodeOnlineListener(listener: () => void): EventSubscription;
export declare function addWillStopNodeInBackgroundAfterDelayListener(listener: (seconds: number) => void): EventSubscription;
export declare function addCanceledPendingNodeStopListener(listener: () => void): EventSubscription;
export declare function addNotificationReceivedListener(listener: (notification: INotification) => void): EventSubscription;
export declare function addThreadUpdateReceivedListener(listener: (threadId: string, feedItem: FeedItemData) => void): EventSubscription;
export declare function addThreadAddedListener(listener: (threadId: string) => void): EventSubscription;
export declare function addThreadRemovedListener(listener: (threadId: string) => void): EventSubscription;
export declare function addAccountPeerAddedListener(listener: (peerId: string) => void): EventSubscription;
export declare function addAccountPeerRemovedListener(listener: (peerId: string) => void): EventSubscription;
export declare function addQueryDoneListener(listener: (queryId: string) => void, queryId?: string): EventSubscription;
export declare function addQueryErrorListener(listener: (queryId: string, error: string) => void, queryId?: string): EventSubscription;
export declare function addPubsubQueryResultListener(listener: (queryId: string, message: string, messageId: string) => void, queryId: string, queryHandle: {
close: () => void;
}): EventSubscription;
export declare function addClientThreadQueryResultListener(listener: (queryId: string, thread: IThread) => void): EventSubscription;
export declare function addContactQueryResultListener(listener: (queryId: string, contact: IContact) => void): EventSubscription;
export declare function addSyncUpdateListener(listener: (syncUpdate: ICafeSyncGroupStatus) => void): EventSubscription;
export declare function addSyncCompleteListener(listener: (syncUpdate: ICafeSyncGroupStatus) => void): EventSubscription;
export declare function addSyncFailedListener(listener: (syncUpdate: ICafeSyncGroupStatus) => void): EventSubscription;