import type { Subject } from "@vkontakte/videoplayer-shared"; import type { ChapterChangedData, EachTickData, PlayerChangedData } from "../types"; import type { CustomError } from "../../../utils/Error"; import type { Manifest } from "../../../manifest"; import type { TInteractiveRangeEndedEvent, TInteractivesActionChoiceEvent, TInteractivesActionExecutionEvent, TInteractivesContainerRemoved, TInteractivesContainerFakeRemoved, SubjectName, TInteractivesVisibility } from "./events.types"; export interface GlobalEvents { noInteraction$: Subject; graphVisibilityChanged$: Subject; watchAgainIsClicked$: Subject; chapterChanged$: Subject; playerChanged$: Subject; error$: Subject; eachTick$: Subject; manifestChanged$: Subject; interactiveRangeEnded$: Subject; interactiveContainerRemoved$: Subject; interactiveContainerFakeRemoved$: Subject; interactiveActionExecution$: Subject>; interactiveActionChoice$: Subject>; interactiveVisibilityChanged$: Subject>; } export declare const EVENT_NAMES: { /** * @deprecated Используйте interactivesInstance.events.graphVisibilityChanged$ * & interactivesInstance.events.watchAgainIsClicked$ */ readonly graph: "graph"; /** * @deprecated Используйте interactivesInstance.events */ readonly interactives: "interactives"; /** * @deprecated Используйте interactivesInstance.events.chapterChanged$ */ readonly chapterChanged: "chapter-changed"; /** * @deprecated Используйте interactivesInstance.events.playerChanged$ */ readonly playerChanged: "player-changed"; /** * @deprecated Используйте interactivesInstance.events.manifestChanged$ */ readonly manifestChanged: "manifest-changed"; /** * @deprecated Используйте interactivesInstance.events.error$ */ readonly errors: "errors"; readonly eachTick: "eachTick"; readonly historyInited: "history-inited"; readonly historyDestroyed: "history-destroyed"; }; /** * @deprecated Используйте interactivesInstance.events.graphVisibilityChanged$ & * interactivesInstance.events.watchAgainIsClicked$ */ export declare const graphEventTypes: { readonly visibility: "visibility"; readonly watchAgainClicked: "watchAgainClicked"; }; /** * @deprecated use InteractivesEventTypes enum instead */ export declare const interactivesEventTypes: { readonly actionChoiceCanceled: "action-choice-canceled"; readonly actionChoice: "action-choice"; readonly actionExecution: "action-execution"; readonly visibility: "visibility"; readonly containerRemoved: "container-removed"; readonly rangeEnded: "range-ended"; }; export declare enum InteractivesEventTypes { ACTION_CHOICE_CANCELED = "action-choice-canceled", ACTION_CHOICE = "action-choice", ACTION_EXECUTION = "action-execution", VISIBILITY = "visibility", CONTAINER_REMOVED = "container-removed", CONTAINER_FAKE_REMOVED = "container-fake-removed", RANGE_ENDED = "range-ended" }