import { E as EventType } from './types-CJtAzafC.js'; export { k as ACTION_OPS, l as ANIMATION_PRESETS, i as Action, A as ActionOp, h as AnimationPreset, m as BEHAVIOR_BINDING_KEYS, e as BehaviorBindingKey, f as BindableAttr, B as Binding, g as BindingMap, c as EekoEventMap, b as EekoSDKState, d as ElTarget, a as EventHandler, G as Guard, I as IEekoSDK, j as InteractionEvent, N as NumericStyleProp, n as QUEUE_POLICIES, Q as QueuePolicy, R as RatioStyleProp, S as Sequence, o as TIMER_TICK, T as TimerTickPayload, W as WidgetInteractions } from './types-CJtAzafC.js'; export { Badge, ChatContext, ChatMessagePayload, ChatUser, ComponentDismissPayload, ComponentTriggerPayload, ComponentUpdatePayload, EmoteProvider, FragmentType, MessageContent, MessageFragment, Platform, ReplyInfo, UserStatus, isChatMessagePayload } from './payloads/index.js'; export { C as ComponentMountPayload, b as ComponentType, a as ComponentUnmountPayload, c as VariableUpdatedPayload } from './lifecycle-DRSAPNpC.js'; export { ValidateInteractionsResult, hasInteractions, validateInteractions } from './interactions/index.js'; import './manifest-Dj_fC51m.js'; /** * @eeko/sdk - Event Constants * * Constants and utilities for SDK events */ /** * All available event types as an array (useful for iteration) */ declare const EVENT_TYPES: readonly EventType[]; /** * Event type constants for use in code */ declare const EEKO_EVENTS: { /** Alert/widget trigger event */ readonly COMPONENT_TRIGGER: "component_trigger"; /** State update for widgets */ readonly COMPONENT_UPDATE: "component_update"; /** Alert/widget dismiss event */ readonly COMPONENT_DISMISS: "component_dismiss"; /** Full state sync */ readonly COMPONENT_SYNC: "component_sync"; /** Component mounted */ readonly COMPONENT_MOUNT: "component_mount"; /** Component unmounting */ readonly COMPONENT_UNMOUNT: "component_unmount"; /** Chat message received */ readonly CHAT_MESSAGE: "chat_message"; /** Variable/config changed */ readonly VARIABLE_UPDATED: "variable_updated"; }; /** * Check if a string is a valid event type */ declare function isValidEventType(event: string): event is EventType; /** * @eeko/sdk - Custom Error Types */ /** * Base error class for all SDK errors */ declare class EekoSDKError extends Error { constructor(message: string); } /** * Thrown when window.eekoSDK is not found */ declare class EekoSDKNotFoundError extends EekoSDKError { constructor(message?: string); } /** * Thrown when SDK initialization times out */ declare class EekoTimeoutError extends EekoSDKError { constructor(timeout: number); } /** * Thrown when connecting to dev server fails */ declare class EekoConnectionError extends EekoSDKError { constructor(message: string); } /** * Thrown when an invalid event type is used */ declare class EekoInvalidEventError extends EekoSDKError { constructor(event: string); } /** * @eeko/sdk * * Official SDK for building Eeko widgets and overlays. * This package provides TypeScript types and interfaces for the Eeko SDK. * * @example * ```typescript * import type { IEekoSDK, ChatMessagePayload } from '@eeko/sdk'; * * // Subscribe to events with type safety * window.eekoSDK.on('chat_message', (msg: ChatMessagePayload) => { * console.log(`${msg.user.displayName}: ${msg.message.text}`); * }); * * // Check SDK state * const state = window.eekoSDK.getState(); * console.log('Config:', state.globalConfig); * ``` * * @packageDocumentation */ /** * SDK Version. Keep in sync with package.json on each release (ideally inject at * build time so it can't drift again). */ declare const VERSION = "0.11.2"; export { EEKO_EVENTS, EVENT_TYPES, EekoConnectionError, EekoInvalidEventError, EekoSDKError, EekoSDKNotFoundError, EekoTimeoutError, EventType, VERSION, isValidEventType };