import type { KinopoiskVideoRef } from "@vot.js/shared/types/helpers/kinopoisk"; import type { MinimalVideoData } from "../types/client.js"; import { BaseHelper } from "./base.js"; export * from "@vot.js/shared/utils/kinopoisk"; /** Extracts the widget state from the live widget document (iframe context). */ export declare function parseKinopoiskWidgetDocument(doc: Document): import("@vot.js/shared/types/helpers/kinopoisk").KinopoiskWidgetState | undefined; /** Film id of the trailer shown by the widget (its title links to the film). */ export declare function getKinopoiskShownFilmId(doc: Document): string | undefined; /** Stream content ids loaded by the widget player, newest first. */ export declare function getKinopoiskLoadedContentIds(): string[]; export default class KinopoiskHelper extends BaseHelper { API_ORIGIN: string; getWidgetState(videoId: string): Promise; /** * Trailer pagination (and autoplay of the next trailer) swaps the video * without changing the widget URL. The player loads the new stream before * the widget re-renders its title, so prefer the last loaded stream and * fall back to the film of the title link */ getShownTrailerRef(ref: KinopoiskVideoRef): Promise; getVideoData(videoId: string): Promise; getVideoId(url: URL): Promise; } //# sourceMappingURL=kinopoisk.d.ts.map