UNPKG

pwa-synergy-api

Version:

synergy application api

15 lines 1.42 kB
import { SynergyMessage, LaunchConfig, Pwa } from '../types/'; export type InterestUpdate<T> = (topic: string, interest: T, domain: string, subDomain: string) => void; export type IntentAction<T> = (action: string, payload: T, domain: string, subDomain: string) => void; export declare const handleMessage: (message: SynergyMessage) => void; export declare const connectionUp: () => void; export declare const registerInterest: <T>(topic: string, callback: InterestUpdate<T>, domain?: string, subDomain?: string) => void; export declare const deregisterInterest: <T>(topic: string, callback: InterestUpdate<T>, domain?: string, subDomain?: string) => void; export declare const notifyInterest: (topic: string, domain: string | undefined, subDomain: string | undefined, interest: any) => void; export declare const registerIntent: <T>(action: string, callback: IntentAction<T>, domain?: string, subDomain?: string) => void; export declare const deregisterIntent: <T>(action: string, callback: IntentAction<T>, domain?: string, subDomain?: string) => void; export declare const raiseIntent: (action: string, domain: string | undefined, subDomain: string | undefined, payload: any) => void; export declare const getApps: (filter: string) => Promise<Pwa[]>; export declare const launchPwa: (url: string) => Promise<void>; export declare const getLaunchConfig: () => Promise<LaunchConfig>; //# sourceMappingURL=index.d.ts.map