UNPKG

customerio-gist-web

Version:

Build beautiful in-app flows with no code and deliver them instantly to your app. http://customer.io

14 lines (13 loc) 1.2 kB
import type { GistMessage, DisplaySettings } from '../types'; export declare const wideOverlayPositions: readonly string[]; export declare function fetchMessageByInstanceId(instanceId: string): GistMessage | undefined; export declare function isQueueIdAlreadyShowing(queueId: string | undefined): boolean; export declare function fetchMessageByElementId(elementId: string | null | undefined): GistMessage | null; export declare function removeMessageByInstanceId(instanceId: string): void; export declare function updateMessageByInstanceId(instanceId: string, message: GistMessage): void; export declare function mapOverlayPositionToElementId(overlayPosition: string | undefined): string; export declare function mapElementIdToOverlayPosition(elementId: string | undefined | null): string | undefined; export declare function matchesRouteRule(rule: string): boolean; export declare function getCurrentDisplayType(message: GistMessage): 'modal' | 'overlay' | 'inline' | 'tooltip'; export declare function hasDisplayChanged(currentMessage: GistMessage, displaySettings: DisplaySettings): boolean; export declare function applyDisplaySettings(message: GistMessage, displaySettings: DisplaySettings): void;