@hmcts/media-viewer
Version:
27 lines • 1.08 kB
TypeScript
import * as fromBookmarks from '../actions/bookmark.actions';
import { Bookmark } from '../../viewers/pdf-viewer/side-bar/bookmarks/bookmarks.interfaces';
export interface BookmarksState {
bookmarks: Bookmark[];
bookmarkEntities: {
[id: string]: Bookmark;
};
bookmarkPageEntities: {
[id: string]: any;
};
editableBookmark: string;
loaded: boolean;
loading: boolean;
scrollTop?: number;
}
export declare const initialBookmarksState: BookmarksState;
export declare function bookmarksReducer(state: BookmarksState, action: fromBookmarks.BookmarksActions): BookmarksState;
export declare const getBookmarks: (state: BookmarksState) => Bookmark[];
export declare const getBookmarkEnts: (state: BookmarksState) => {
[id: string]: Bookmark;
};
export declare const getBookmarkPageEnt: (state: BookmarksState) => {
[id: string]: any;
};
export declare const getEditBookmark: (state: BookmarksState) => string;
export declare const getScrollTop: (state: BookmarksState) => number;
//# sourceMappingURL=bookmarks.reducer.d.ts.map