import { IDiscussionCreateInput } from '@nishans/discourse'; import { TBlockInput } from '@nishans/fabricator'; import { INotionRepositionParams } from '@nishans/lineage'; import { FilterType, FilterTypes, UpdateType, UpdateTypes } from '@nishans/traverser'; import { IComment, IDiscussion, TBasicBlockType, TBlock, TData, TTextFormat } from '@nishans/types'; import { INotionCoreOptions } from '../../'; import Comment from '../Comment'; import Data from '../Data'; /** * A class to represent block of Notion * @noInheritDoc */ declare class Block, P extends TData> extends Data { constructor(arg: INotionCoreOptions); getCachedParentData(): Promise

; reposition(arg?: INotionRepositionParams): Promise; /** * Duplicate the current block * @param infos Array of objects containing information regarding the position and id of the duplicated block * @returns A block map */ duplicate(infos: number | string[]): Promise; /** * Convert the current block to a different basic block * @param type `TBasicBlockType` basic block types */ convertTo(type: TBasicBlockType): Promise; /** * Delete the current block */ delete(): Promise; /** * Transfer a block from one parent page to another page * @param new_parent_id Id of the new parent page */ transfer(new_parent_id: string): Promise; createDiscussions(args: IDiscussionCreateInput[]): Promise; updateDiscussion(arg: UpdateType): Promise; updateDiscussions(args: UpdateTypes, multiple?: boolean): Promise; deleteDiscussion(arg: FilterType): Promise; deleteDiscussions(args: FilterTypes, multiple?: boolean): Promise; getDiscussion(arg?: FilterType): Promise; getDiscussions(args?: FilterTypes, multiple?: boolean): Promise; getComment(arg?: FilterType): Promise; getComments(args?: FilterTypes, multiple?: boolean): Promise; } export default Block;