17 lines
548 B
TypeScript
17 lines
548 B
TypeScript
import { BridgeContext } from "../runtime/global";
|
|
export declare function notification(context: BridgeContext): {
|
|
publish: (args: {
|
|
biz?: string | undefined;
|
|
name: string;
|
|
data?: object | undefined;
|
|
androidSystem?: boolean | undefined;
|
|
}) => Promise<any>;
|
|
subscribe: (args: {
|
|
biz?: string | undefined;
|
|
name: string;
|
|
callback: (data?: any) => void;
|
|
androidSystem?: boolean | undefined;
|
|
}) => Promise<string>;
|
|
unsubscribe: (subscribeId: string) => Promise<any>;
|
|
};
|