import { TCollectionBlockInput, TViewCreateInput } from '@nishans/fabricator'; import { FilterType, FilterTypes, UpdateType, UpdateTypes } from '@nishans/traverser'; import { IPage, ISpace, TCollectionBlock, TView, TViewUpdateInput } from '@nishans/types'; import { INotionCoreOptions, IViewMap } from '../../'; import Collection from '../Collection'; import Block from './Block'; /** * A class to represent collection block type in Notion * @noInheritDoc */ declare class CollectionBlock extends Block { constructor(arg: INotionCoreOptions); /** * Fetch the corresponding collection of the collection block using the collection_id * @returns The corresponding collection object */ getCollection(): Promise; createViews(params: TViewCreateInput[]): Promise; /** * Get all the views associated with the collection block * @returns An array of view objects of the collection block */ getViews(args?: FilterTypes, multiple?: boolean): Promise; updateView(arg: UpdateType): Promise; updateViews(args: UpdateTypes, multiple?: boolean): Promise; /** * Delete a single root page from the space * @param arg Criteria to filter the page to be deleted */ deleteView(arg?: FilterType): Promise; /** * Delete multiple root_pages or root_collection_view_pages * @param arg Criteria to filter the pages to be deleted * @param multiple whether or not multiple root pages should be deleted */ deleteViews(args?: FilterTypes, multiple?: boolean): Promise; } export default CollectionBlock;