import type { BBChannelOptions, BBNavigationState } from '../types'; /** * Returns true when `url`'s origin is a Blue Billywig host. Used to decide * whether to attach session tokens to a channel config URL (see * `generateChannelHTML`) and to validate media-play URLs received from the * WebView. This is NOT a fetch gate — the HTML emitted by `generateChannelHTML` * still fetches a non-BB `channelUrl`; the only thing the BB-origin check * suppresses there is inlining `jwt`/`rpcToken`. Callers that need to refuse * non-BB URLs entirely must do so themselves. * * Extends isValidBundleUrl — adds *.bbvms.com allowance for channel/media * origins (bundle URLs are stricter: BB CDN only). Allows *.bluebillywig.com * and *.bbvms.com over HTTPS; localhost/127.0.0.1/10.0.2.2 for dev. * * Twin: src/util/auth-tokens.ts `isBbAuthOrigin` — keep allowlists in sync. */ export declare function isValidChannelUrl(url: string): boolean; /** * Validate that a bundle URL is on an allowed domain * Production: *.bluebillywig.com only (HTTPS required) * Development: localhost/127.0.0.1 with http: or https: */ export declare function isValidBundleUrl(url: string): boolean; /** * Generate the HTML content for the WebView * Loads channel-native.js from CDN (default) or custom bluebillywig.com URL */ export declare function generateChannelHTML(channelUrl: string, options?: BBChannelOptions, initialNavigationState?: BBNavigationState): string; /** * Parse a channel URL to extract publication and channel ID * Supports both bbvms.com and bluebillywig.com domains (Fix #6) */ export declare function parseChannelUrl(url: string): { publication: string; channelId: string; } | null; //# sourceMappingURL=index.d.ts.map