import { BaseService } from '../../services/abstract/baseService'; import { ReadStatus } from '../../stories/models/readStatus'; import { StoryPlaybackMode } from '../activity/models/storyPlaybackMode'; import { Page } from '../../stories/models/page'; import { Story, StoryWithRowIndex } from '../../stories/models/story'; import { StoryReadState } from '../../stories/models/storyState'; import { Clip } from '../../row/components/list/models/clip'; declare class UserDataService extends BaseService { static sharedInstance: UserDataService; protected logTag: string; private _defaultStoryReadState; initialiseReadStateForStories(stories: Story[]): void; initialiseShareStateForClips(clips: Clip[]): void; setPageViewed({ page, story, }: { page: Page; story: StoryWithRowIndex; }): void; getStoryReadState(storyId?: string): StoryReadState; removeStoryQuizResultPage(story: StoryWithRowIndex, quizResultPageId: string): void; setClipViewed(clipId: string): void; setClipShared(clip: Clip): void; getClipShares(clip: Clip): number; getClipViewedState(clipId?: string): ReadStatus; getStoryPlaybackMode(storyId: string): StoryPlaybackMode; setStoryPlaybackMode(storyId: string, playbackMode: StoryPlaybackMode): void; /** * When we reload the page and fetch the Stories, new pages might have * been added since the read status was last stored. * So we check if it's still valid. */ checkStoryReadStatus(story: Story): void; private getStoryReadStatus_; } declare const _default: UserDataService; export default _default;