import { TransferSpec, VideoPlayerOptions } from '../models/models'; declare global { interface Window { Hls: any; } } /** * Inject the video into the DOM * * @param url URL of the stream returned from HTTP Gateway Server * @param videoDomQuery an injection point for the video. Should be a `div`. If found the content will be removed before loading. If not set will do nothing and let client handle video playback. */ export declare const injectStreamToDom: (url: string, videoDomQuery: string, videoOptions?: VideoPlayerOptions) => void; /** * Start a HTTP Gateway video. stream. transferSpec is ONLY accepted if contains ONE file. * * It is recommended to add this https://cdn.jsdelivr.net/npm/hls.js to your project * * @param transferSpec standard Connect transferSpec for downloading * @param videoDomQuery an injection point for the video. Should be a `div`. If found the content will be removed before loading. If not set will do nothing and let client handle video playback. * * @returns a promise that resolves if stream is started successfully or rejects if error occurs */ export declare const startStream: (transferSpec: TransferSpec, videoDomQuery?: string, videoOptions?: VideoPlayerOptions) => Promise; declare const _default: { startStream: (transferSpec: TransferSpec, videoDomQuery?: string, videoOptions?: VideoPlayerOptions) => Promise; injectStreamToDom: (url: string, videoDomQuery: string, videoOptions?: VideoPlayerOptions) => void; }; export default _default;