/** * Blocks Mega Tool * All block operations in one unified interface */ import type { Client } from '@notionhq/client'; export interface GetBlockResult { action: 'get'; block_id: string; type: string; has_children: boolean; archived: boolean; block: any; } export interface GetBlockChildrenResult { action: 'children'; block_id: string; total_children: number; markdown: string; blocks: any[]; } export interface AppendToBlockResult { action: 'append'; block_id: string; appended_count: number; } export interface UpdateBlockResult { action: 'update'; block_id: string; type: string; updated: true; } export interface DeleteBlockResult { action: 'delete'; block_id: string; deleted: true; } export type BlocksResult = GetBlockResult | GetBlockChildrenResult | AppendToBlockResult | UpdateBlockResult | DeleteBlockResult; export interface BlocksInput { action: 'get' | 'children' | 'append' | 'update' | 'delete'; block_id: string; content?: string; position?: 'start' | 'end' | 'after_block'; after_block_id?: string; } /** * Unified blocks tool * Maps to: GET/PATCH/DELETE /v1/blocks/{id} and GET/PATCH /v1/blocks/{id}/children */ export declare function blocks(notion: Client, input: BlocksInput): Promise; //# sourceMappingURL=blocks.d.ts.map