import { $ as WebcastHttpRouteArgs, $t as deserializeWebSocketMessage, A as fetchWebcastSignatureFromEulerRoute, At as WebcastWebSocketEventMap, B as fetchRoomGiftGalleryFromEulerRoute, Bt as TikTokLiveConnectionMutableOptions, C as RoomGiftsRouteParams, Ct as TikTokLiveConnectionState, D as FetchWebcastSignatureFromEulerRouteParams, Dt as WebcastWebSocketClient, E as sendRoomChatFromEulerRoute, Et as WebcastTypedClient, F as fetchRoomInfoFromEulerRoute, Ft as OAuthTokenSessionBundle, G as SignConfig, Gt as WebcastEventMessage, H as RoomGiftsFromEulerRouteParams, Ht as TikTokLiveConnectionProviderOptions, I as FetchRoomIdFromEulerRouteParams, It as RoomGiftInfo, J as index_d_exports$1, Jt as WebcastWebConfigDefaults, K as createEulerClient, Kt as WebcastHttpClientRequestParams, L as fetchRoomIdFromEulerRoute, Lt as RoomInfo, M as FetchSignedWebSocketFromEulerRouteResponse, Mt as DecodedData, N as fetchSignedWebSocketFromEulerRoute, Nt as DecodedWebcastPushFrame, O as WebcastSignerParams, Ot as createWebSocketProvider, P as FetchRoomInfoFromEulerRouteParams, Pt as IWebcastDeserializeConfig, Q as WebcastHttpEulerRouteArgs, Qt as deserializeMessage, R as RoomGiftGalleryFromEulerResponse, Rt as SessionBundle, S as RoomGiftsResponse, St as EventHandler, T as SendRoomChatFromEulerRouteParams, Tt as WebcastEventMap, U as fetchRoomGiftsFromEulerRoute, Ut as TikTokLiveConstructorConnectionOptions, V as RoomGiftsFromEulerResponse, Vt as TikTokLiveConnectionOptions, W as LIBRARY_IDENTITY, Wt as WebSocketParams, X as HttpRoute, Xt as WebcastDeserializeConfig, Y as EulerRouteRequestOptions, Yt as generateUniqId, Z as WebcastHttpCompositeRouteArgs, Zt as createBaseWebcastPushFrame, _ as FetchRoomInfoFromApiRouteResponse, _t as UserOfflineError, a as EulerFetchRoute, an as AbstractWebcastCookieJar, at as ErrorReason, b as RoomInfoRouteParams, bt as ConnectState, c as fetchIsLiveComposite, cn as GetWebSocketConfigParams, ct as InvalidResponseError, d as fetchRoomIdComposite, dn as WebSocketDynamicParams, dt as PremiumFeatureError, en as validateAndNormalizeUniqueId, et as WrappedHttpRoute, f as FetchRoomInfoFromHtmlRouteParams, fn as WebcastGotHttpConfig, ft as SchemaDecodeError, g as FetchRoomInfoFromApiRouteParams, gt as TikTokLiveError, h as fetchRoomInfoFromHtmlRoute, ht as SignatureRateLimitError, i as CompositeFetchRoute, in as WebcastWebSocketConfigDefaults, it as ConnectTimeoutError, j as FetchSignedWebSocketFromEulerRouteParams, jt as CookieSessionBundle, k as WebcastSignerResponse, kt as WebcastTypedWebSocket, l as FetchRoomIdRouteParams, ln as LocationPreset, lt as InvalidSchemaNameError, m as RoomInfoFromHtmlRouteConfig, mt as SignatureMissingTokensError, n as HandleError, nn as WebSocketConfigDefaults, nt as AlreadyConnectingError, o as FetchIsLiveRouteParams, on as DevicePreset, ot as InvalidRequestError, p as FetchRoomInfoFromHtmlRouteResponse, pt as SignAPIError, q as WebcastHttpClient, qt as WebcastMessage, r as BaseFetchRoute, rn as WebcastWebSocketConfig, rt as AuthenticatedWebSocketConnectionError, s as IsLiveRouteConfig, sn as GetWebConfigParams, st as InvalidResponseCompositeError, t as TikTokLiveConnection, tn as getWebSocketConfigDefaults, tt as AlreadyConnectedError, u as RoomIdRouteConfig, un as ScreenPreset, ut as InvalidUniqueIdError, v as fetchRoomInfoFromApiLiveRoute, vt as BasicWebcastEventMessage, w as fetchRoomGiftsRoute, wt as WebcastEvent, x as fetchRoomInfoRoute, xt as ControlEvent, y as RoomInfoResponse, yt as ClientEventMap, z as RoomGiftGalleryFromEulerRouteParams, zt as TikTokLiveConnectionBundledAuthOptions } from "./index-BOj1WW_Q.js";
import * as _$tiktok_live_api_sdk0 from "tiktok-live-api-sdk";
export * from "tiktok-live-proto/v3";

//#region src/lib/web/config.d.ts
/**
 * Global route registry. Call sites should read handlers from here (e.g. RouteConfig.fetchRoomInfo(...))
 * rather than importing the route functions directly, so downstream consumers can swap implementations:
 *
 *   import { RouteConfig } from 'tiktok-live-connector';
 *   RouteConfig.fetchRoomInfo = async ({ webClient, roomId }) => { ... };
 *
 */
declare const RouteConfig: {
  fetchRoomGifts: HttpRoute<RoomGiftsRouteParams, any>;
  fetchRoomInfo: HttpRoute<RoomInfoRouteParams, any>;
  fetchRoomInfoFromApiLive: HttpRoute<FetchRoomInfoFromApiRouteParams, FetchRoomInfoFromApiRouteResponse>;
  fetchRoomInfoFromHtml: HttpRoute<FetchRoomInfoFromHtmlRouteParams, FetchRoomInfoFromHtmlRouteResponse>;
  fetchRoomGiftsFromProvider: HttpRoute<RoomGiftsFromEulerRouteParams, _$tiktok_live_api_sdk0.RoomGiftsResponse>;
  fetchRoomGiftGalleryFromProvider: HttpRoute<RoomGiftGalleryFromEulerRouteParams, _$tiktok_live_api_sdk0.WebcastGiftGalleryResponse>;
  fetchRoomIdFromProvider: HttpRoute<FetchRoomIdFromEulerRouteParams, _$tiktok_live_api_sdk0.WebcastRoomIdRouteResponse>;
  fetchRoomInfoFromProvider: HttpRoute<FetchRoomInfoFromEulerRouteParams, _$tiktok_live_api_sdk0.WebcastRoomInfoRouteResponse>;
  fetchSignedWebSocketFromProvider: HttpRoute<FetchSignedWebSocketFromEulerRouteParams, FetchSignedWebSocketFromEulerRouteResponse>;
  fetchWebcastSignatureFromProvider: HttpRoute<FetchWebcastSignatureFromEulerRouteParams, _$tiktok_live_api_sdk0.SignTikTokUrlResponse>;
  sendRoomChatFromProvider: HttpRoute<SendRoomChatFromEulerRouteParams, _$tiktok_live_api_sdk0.WebcastRoomChatRouteResponse>;
  fetchRoomIdComposite: HttpRoute<FetchRoomIdRouteParams, string>;
  fetchIsLiveComposite: HttpRoute<FetchIsLiveRouteParams, boolean>;
};
declare const getWebConfig: ({
  device,
  location,
  screen
}: GetWebConfigParams) => WebcastWebConfigDefaults;
declare const getRandomPresets: () => {
  device: DevicePreset;
  screen: ScreenPreset;
  location: LocationPreset;
};
//#endregion
//#region src/lib/web/lib/device-presets.d.ts
declare const Locations: LocationPreset[];
declare const Screens: ScreenPreset[];
declare const UserAgents: string[];
declare function userAgentToDevicePreset(userAgent: string): DevicePreset;
declare function getRandomDevicePreset(): DevicePreset;
declare function getRandomLocationPreset(): LocationPreset;
declare function getRandomScreenPreset(): ScreenPreset;
declare function generateDeviceId(): string;
declare const Devices: DevicePreset[];
//#endregion
//#region src/lib/web/lib/route-wrapper.d.ts
declare function createRoute<P extends object, R>(routeId: string, routeHandler: WrappedHttpRoute<P, R>): HttpRoute<P, R>;
//#endregion
//#region src/version.d.ts
declare const VERSION: string;
declare namespace index_d_exports {
  export { AbstractWebcastCookieJar, AlreadyConnectedError, AlreadyConnectingError, AuthenticatedWebSocketConnectionError, BaseFetchRoute, BasicWebcastEventMessage, ClientEventMap, CompositeFetchRoute, ConnectState, ConnectTimeoutError, ControlEvent, CookieSessionBundle, DecodedData, DecodedWebcastPushFrame, DevicePreset, Devices, ErrorReason, EulerFetchRoute, EulerRouteRequestOptions, EventHandler, FetchIsLiveRouteParams, FetchRoomIdFromEulerRouteParams, FetchRoomIdRouteParams, FetchRoomInfoFromApiRouteParams, FetchRoomInfoFromApiRouteResponse, FetchRoomInfoFromEulerRouteParams, FetchRoomInfoFromHtmlRouteParams, FetchRoomInfoFromHtmlRouteResponse, FetchSignedWebSocketFromEulerRouteParams, FetchSignedWebSocketFromEulerRouteResponse, FetchWebcastSignatureFromEulerRouteParams, GetWebConfigParams, GetWebSocketConfigParams, HandleError, HttpRoute, IWebcastDeserializeConfig, InvalidRequestError, InvalidResponseCompositeError, InvalidResponseError, InvalidSchemaNameError, InvalidUniqueIdError, IsLiveRouteConfig, LIBRARY_IDENTITY, LocationPreset, Locations, OAuthTokenSessionBundle, PremiumFeatureError, RoomGiftGalleryFromEulerResponse, RoomGiftGalleryFromEulerRouteParams, RoomGiftInfo, RoomGiftsFromEulerResponse, RoomGiftsFromEulerRouteParams, RoomGiftsResponse, RoomGiftsRouteParams, RoomIdRouteConfig, RoomInfo, RoomInfoFromHtmlRouteConfig, RoomInfoResponse, RoomInfoRouteParams, RouteConfig, SchemaDecodeError, ScreenPreset, Screens, SendRoomChatFromEulerRouteParams, SessionBundle, SignAPIError, SignConfig, SignatureMissingTokensError, SignatureRateLimitError, TikTokLiveConnection, TikTokLiveConnectionBundledAuthOptions, TikTokLiveConnectionMutableOptions, TikTokLiveConnectionOptions, TikTokLiveConnectionProviderOptions, TikTokLiveConnectionState, TikTokLiveConstructorConnectionOptions, TikTokLiveError, UserAgents, UserOfflineError, VERSION, WebSocketConfigDefaults, WebSocketDynamicParams, WebSocketParams, WebcastDeserializeConfig, WebcastEvent, WebcastEventMap, WebcastEventMessage, WebcastGotHttpConfig, WebcastHttpClient, WebcastHttpClientRequestParams, WebcastHttpCompositeRouteArgs, WebcastHttpEulerRouteArgs, WebcastHttpRouteArgs, WebcastMessage, WebcastSignerParams, WebcastSignerResponse, WebcastTypedClient, WebcastTypedWebSocket, WebcastWebConfigDefaults, WebcastWebSocketClient, WebcastWebSocketConfig, WebcastWebSocketConfigDefaults, WebcastWebSocketEventMap, WrappedHttpRoute, createBaseWebcastPushFrame, createEulerClient, createRoute, createWebSocketProvider, deserializeMessage, deserializeWebSocketMessage, fetchIsLiveComposite, fetchRoomGiftGalleryFromEulerRoute, fetchRoomGiftsFromEulerRoute, fetchRoomGiftsRoute, fetchRoomIdComposite, fetchRoomIdFromEulerRoute, fetchRoomInfoFromApiLiveRoute, fetchRoomInfoFromEulerRoute, fetchRoomInfoFromHtmlRoute, fetchRoomInfoRoute, fetchSignedWebSocketFromEulerRoute, fetchWebcastSignatureFromEulerRoute, generateDeviceId, generateUniqId, getRandomDevicePreset, getRandomLocationPreset, getRandomPresets, getRandomScreenPreset, getWebConfig, getWebSocketConfigDefaults, sendRoomChatFromEulerRoute, userAgentToDevicePreset, validateAndNormalizeUniqueId };
}
//#endregion
export { AbstractWebcastCookieJar, AlreadyConnectedError, AlreadyConnectingError, AuthenticatedWebSocketConnectionError, BaseFetchRoute, BasicWebcastEventMessage, ClientEventMap, CompositeFetchRoute, ConnectState, ConnectTimeoutError, ControlEvent, CookieSessionBundle, DecodedData, DecodedWebcastPushFrame, DevicePreset, Devices, ErrorReason, EulerFetchRoute, EulerRouteRequestOptions, EventHandler, FetchIsLiveRouteParams, FetchRoomIdFromEulerRouteParams, FetchRoomIdRouteParams, FetchRoomInfoFromApiRouteParams, FetchRoomInfoFromApiRouteResponse, FetchRoomInfoFromEulerRouteParams, FetchRoomInfoFromHtmlRouteParams, FetchRoomInfoFromHtmlRouteResponse, FetchSignedWebSocketFromEulerRouteParams, FetchSignedWebSocketFromEulerRouteResponse, FetchWebcastSignatureFromEulerRouteParams, GetWebConfigParams, GetWebSocketConfigParams, HandleError, HttpRoute, IWebcastDeserializeConfig, InvalidRequestError, InvalidResponseCompositeError, InvalidResponseError, InvalidSchemaNameError, InvalidUniqueIdError, IsLiveRouteConfig, LIBRARY_IDENTITY, LocationPreset, Locations, OAuthTokenSessionBundle, PremiumFeatureError, RoomGiftGalleryFromEulerResponse, RoomGiftGalleryFromEulerRouteParams, RoomGiftInfo, RoomGiftsFromEulerResponse, RoomGiftsFromEulerRouteParams, RoomGiftsResponse, RoomGiftsRouteParams, RoomIdRouteConfig, RoomInfo, RoomInfoFromHtmlRouteConfig, RoomInfoResponse, RoomInfoRouteParams, RouteConfig, SchemaDecodeError, ScreenPreset, Screens, SendRoomChatFromEulerRouteParams, SessionBundle, SignAPIError, SignConfig, SignatureMissingTokensError, SignatureRateLimitError, TikTokLiveConnection, TikTokLiveConnectionBundledAuthOptions, TikTokLiveConnectionMutableOptions, TikTokLiveConnectionOptions, TikTokLiveConnectionProviderOptions, TikTokLiveConnectionState, TikTokLiveConstructorConnectionOptions, TikTokLiveError, UserAgents, UserOfflineError, VERSION, WebSocketConfigDefaults, WebSocketDynamicParams, WebSocketParams, WebcastDeserializeConfig, WebcastEvent, WebcastEventMap, WebcastEventMessage, WebcastGotHttpConfig, WebcastHttpClient, WebcastHttpClientRequestParams, WebcastHttpCompositeRouteArgs, WebcastHttpEulerRouteArgs, WebcastHttpRouteArgs, WebcastMessage, WebcastSignerParams, WebcastSignerResponse, WebcastTypedClient, WebcastTypedWebSocket, WebcastWebConfigDefaults, WebcastWebSocketClient, WebcastWebSocketConfig, WebcastWebSocketConfigDefaults, WebcastWebSocketEventMap, WrappedHttpRoute, createBaseWebcastPushFrame, createEulerClient, createRoute, createWebSocketProvider, deserializeMessage, deserializeWebSocketMessage, fetchIsLiveComposite, fetchRoomGiftGalleryFromEulerRoute, fetchRoomGiftsFromEulerRoute, fetchRoomGiftsRoute, fetchRoomIdComposite, fetchRoomIdFromEulerRoute, fetchRoomInfoFromApiLiveRoute, fetchRoomInfoFromEulerRoute, fetchRoomInfoFromHtmlRoute, fetchRoomInfoRoute, fetchSignedWebSocketFromEulerRoute, fetchWebcastSignatureFromEulerRoute, generateDeviceId, generateUniqId, getRandomDevicePreset, getRandomLocationPreset, getRandomPresets, getRandomScreenPreset, getWebConfig, getWebSocketConfigDefaults, sendRoomChatFromEulerRoute, userAgentToDevicePreset, validateAndNormalizeUniqueId };
//# sourceMappingURL=index.d.ts.map