/** * Chat widget API – HTTP helpers and endpoint constants. */ import type { VTiltConfig } from "../../types"; export declare const API: { readonly channels: "/api/chat/widget/channels"; readonly messages: (channelId: string) => string; readonly read: (channelId: string) => string; readonly ablyToken: "/api/chat/token/widget"; }; /** Minimal host surface for HTTP helpers (lazy chat bundle must not rely on `VTilt` prototype methods). */ export interface ApiRequestInstance { getConfig(): Pick; } export declare function apiRequest(instance: ApiRequestInstance, endpoint: string, options?: RequestInit): Promise;