UNPKG

@sheerid/jslib-nightly

Version:

SheerID JavaScript Library

15 lines (13 loc) 594 B
import { Options, ViewModel } from '../types/types'; export declare const listenToSheerIdFrame: (callback: Function) => void; export declare const speakToOuterFrame: (message: object) => void; export type InstallSetViewModelPageEvent = { action: "setViewModel"; viewModel: Partial<ViewModel> | ViewModel; }; export type InstallSetOptionsPageEvent = { action: "setOptions"; options: Options; }; export type InstallPageEvent = InstallSetViewModelPageEvent | InstallSetOptionsPageEvent; export declare const listenToInstallPage: (callback: (event: MessageEvent) => void) => void;