import * as CustomEventType from "../contexts/common/CustomEventType"; import { FacadeChatSDK } from "./facades/FacadeChatSDK"; import { ITimer } from "./interfaces/ITimer"; export declare const setTabIndices: (elements: HTMLElement[] | null, tabIndexMap: Map, shouldBeFocusable: boolean) => void; export declare const findParentFocusableElementsWithoutChildContainer: (elementId: string) => HTMLElement[] | null; export declare const findAllFocusableElement: (parent: string | HTMLElement) => any[] | null; export declare const preventFocusToMoveOutOfElement: (elementId: string) => (() => void); export declare const setAriaHiddenForSiblings: (elementId: string, shouldHide: boolean, stateMap: Map) => void; export declare const setFocusOnSendBox: () => void; export declare const setFocusOnElement: (selector: string | HTMLElement) => void; export declare const announceMessageImmediately: (message: string) => void; export declare const escapeHtml: (inputString: string) => string; export declare const getIconText: (text: string) => string; export declare const getLocaleDirection: (localeLCID: string) => string; export declare const changeLanguageCodeFormatForWebChat: (languageCode: string) => string; export declare const getTimestampHourMinute: (timestampStr: string) => string; export declare const parseAdaptiveCardPayload: (payload: string, requiredFieldMissingMessage: string) => string; export declare const extractPreChatSurveyResponseValues: (preChatSurvey: string, values: { index: number; label: any; id: any; value: string; }[]) => {}; export declare const isNullOrUndefined: (obj: any) => boolean; export declare const isNullOrEmptyString: (s: string | null) => boolean; export declare const newGuid: () => string; export declare const createTimer: () => ITimer; export declare const getDomain: (hostValue: any) => string; export declare const getWidgetCacheId: (orgId: string, widgetId: string, widgetInstanceId: string, popoutChat?: boolean) => string; export declare const getWidgetEndChatEventName: (orgId: string, widgetId: string, widgetInstanceId: string) => string; export declare const getStateFromCache: (widgetCacheId: string) => any; export declare const isUndefinedOrEmpty: (object: any) => boolean; export declare const addDelayInMs: (ms: number) => Promise; export declare const getBroadcastChannelName: (widgetId: string, widgetInstanceId: string) => string; export declare const getWidgetCacheIdfromProps: (props: any, popoutChat?: boolean) => string; export declare const debounceLeading: (fn: any, ms?: number) => (...args: any[]) => void; export declare const isThisSessionPopout: (href: string) => boolean; export declare const getConversationDetailsCall: (facadeChatSDK: FacadeChatSDK, liveChatContext?: any) => Promise; export declare const checkContactIdError: (e: any) => void; export declare const createFileAndDownload: (fileName: string, blobData: string, mimeType: string) => void; /** * * Replace placeholders with format {0}..{n} , in a string with values * * @param template String with placeholders to be replaced * @param values array of values to replace the placeholders * @returns formatted string with replaced values */ export declare const formatTemplateString: (templateMessage: string, values: any) => string; export declare const parseLowerCaseString: (property: string | boolean | undefined) => string; export declare const setOcUserAgent: (chatSDK: any) => void; export declare function getDeviceType(): string; export declare const isValidCustomEvent: (payload: object) => boolean; export declare const getCustomEventValue: (customEventPayload: CustomEventType.ICustomEvent) => string; export declare function isEndConversationDueToOverflowActivity(activity: { channelData?: { tags?: string[]; }; }): boolean | undefined; /** * Parses a value that can be boolean or string ("true"/"false") into a boolean. * Handles null/undefined by returning false. * * @param value - The value to parse (can be boolean, string, null, or undefined) * @returns true if value is true or "true" (case-insensitive), false otherwise */ export declare function parseBooleanFromConfig(value: boolean | string | null | undefined): boolean;