import * as React from 'react'; import { PropsWithChildren, RefObject, MutableRefObject } from 'react'; import { AmpStoryPlayer } from '../../../types/ampStories'; import { IStorytellerTheme } from '../../configuration/models/theme/storytellerTheme'; import { ListViewDelegate } from '../../infrastructure/activity/listViewDelegate'; import StoriesPlayerSyncService from '../../row/abstract/storiesPlayerSyncService'; export interface StoryViewContextProps { pageId?: string; storyId?: string; basename: string; isVisible: boolean; playAllStories: boolean; setIsPlayerVisible: (isVisible: boolean) => void; currentCategories: string[]; shouldShowInstructions: boolean; storiesPlayerSyncService: StoriesPlayerSyncService; } export interface StoryViewContextValue extends Omit { player: RefObject; listDelegate: ListViewDelegate; finalStoryIndex: MutableRefObject; isLightboxVisible: boolean; setLightboxVisible: React.Dispatch>; muteState: MutableRefObject; theme: IStorytellerTheme; } export declare const StoryViewContext: React.Context; declare const StoryViewContextProvider: React.FC>; export default StoryViewContextProvider;