vue-chat-button-simple
Version:
Vue 2 & Vue 3 compatible chat button components with badge support, modal popup, fixed positioning, environment configuration, and customizable themes
22 lines • 868 B
TypeScript
interface GlobalModalInstance {
open: (url: string, title?: string) => void;
close: () => void;
toggle: () => void;
setPosition: (x: number, y: number) => void;
setSize: (width: number, height: number) => void;
toggleFullscreen: () => void;
isFullscreen: () => boolean;
}
export declare const setGlobalModalInstance: (instance: GlobalModalInstance) => void;
export declare const getGlobalModalInstance: () => GlobalModalInstance | null;
export declare const openGlobalModal: (url: string, title?: string) => void;
export declare const closeGlobalModal: () => void;
export declare const toggleGlobalModal: () => void;
export declare const hasGlobalModalInstance: () => boolean;
export declare const getGlobalModalState: () => {
visible: boolean;
url: string;
title: string;
};
export {};
//# sourceMappingURL=globalModal.d.ts.map