UNPKG

@agentman/chat-widget

Version:

Agentman Chat Widget for easy integration with web applications

15 lines (14 loc) 542 B
/** * Determines if a given string is a URL to an image. * @param url - The string to check * @returns boolean indicating if the string is a URL */ export declare const isImageUrl: (url: string) => boolean; /** * Converts an icon source (URL or SVG) to HTML. * @param icon - The icon source (URL or SVG string) * @param alt - Alt text for accessibility * @param size - Size in pixels for width and height * @returns HTML string for the icon */ export declare const getIconHtml: (icon: string, alt: string, size?: number) => string;