overcentric
Version:
A lightweight, privacy-focused toolkit for modern SaaS web applications
21 lines (20 loc) • 664 B
TypeScript
interface InitOptions {
context: string;
position: 'bottom-right' | 'bottom-left';
isChatEnabled: boolean;
isKBEnabled: boolean;
}
/**
* Initialize the dock with a floating button and iframe.
* @param options - The options for the dock.
*/
export declare function initDock(options: InitOptions): void;
/**
* Update the dock iframe with the identity ID.
* @param identity - The identity to be added to the iframe URL.
*/
export declare function updateDockIdentity(identity: any): void;
export declare function setDockUrl(urlSuffix: string): void;
export declare function openDock(): void;
export declare function closeDock(): void;
export {};