import { INotionRepositionParams } from '@nishans/lineage'; import { FilterType, FilterTypes, UpdateType, UpdateTypes } from '@nishans/traverser'; import { ISpaceView, IUserRoot, TPage } from '@nishans/types'; import { INotionCoreOptions, IPageMap, ISpaceViewUpdateInput } from '../'; import Data from './Data'; import Space from './Space'; /** * A class to represent space view of Notion * @noInheritDoc */ declare class SpaceView extends Data { constructor(arg: INotionCoreOptions); getCachedParentData(): IUserRoot; reposition(arg?: INotionRepositionParams): Promise; /** * Get the corresponding space associated with this space view * @returns The corresponding space object */ getSpace(): Space; getBookmarkedPage(arg: FilterType): Promise; getBookmarkedPages(args: FilterTypes, multiple?: boolean): Promise; /** * Toggle a single page from the bookmark list * @param arg id string or a predicate filter function */ updateBookmarkedPage(arg: UpdateType): Promise; /** * Toggle multiple pages from the bookmark list * @param arg string of ids or a predicate function * @param multiple whether multiple or single item is targeted */ updateBookmarkedPages(args: UpdateTypes, multiple?: boolean): Promise; } export default SpaceView;