import { Client } from '@notionhq/client'; declare type ImageBlock = Extract>, { type: 'image'; }>; declare type ColumnListBlock = Extract>, { type: 'column_list'; }>; declare type ColumnBlock = Extract>, { type: 'column'; }>; declare type ParagraphBlock = Extract>, { type: 'paragraph'; }>; declare type CalloutBlock = Extract>, { type: 'callout'; }>; declare type QuoteBlock = Extract>, { type: 'quote'; }>; declare type HeadingBlockLevel1 = Extract>, { type: 'heading_1'; }>; declare type HeadingBlockLevel2 = Extract>, { type: 'heading_2'; }>; declare type HeadingBlockLevel3 = Extract>, { type: 'heading_3'; }>; declare type ChildPageBlock = Extract>, { type: 'child_page'; }>; declare type ToggleBlock = Extract>, { type: 'toggle'; }>; declare type BulletedListItemBlock = Extract>, { type: 'bulleted_list_item'; }>; declare type NumberedListItemBlock = Extract>, { type: 'numbered_list_item'; }>; declare type CodeBlock = Extract>, { type: 'code'; }>; declare type LinkPreviewBlock = Extract>, { type: 'link_preview'; }>; declare type TableOfContentsBlock = Extract>, { type: 'table_of_contents'; }>; declare type Block = Extract>, { type: any; }>; declare type HeadingBlock = HeadingBlockLevel1 | HeadingBlockLevel2 | HeadingBlockLevel3; type blocks_ImageBlock = ImageBlock; type blocks_ColumnListBlock = ColumnListBlock; type blocks_ColumnBlock = ColumnBlock; type blocks_ParagraphBlock = ParagraphBlock; type blocks_CalloutBlock = CalloutBlock; type blocks_QuoteBlock = QuoteBlock; type blocks_HeadingBlockLevel1 = HeadingBlockLevel1; type blocks_HeadingBlockLevel2 = HeadingBlockLevel2; type blocks_HeadingBlockLevel3 = HeadingBlockLevel3; type blocks_ChildPageBlock = ChildPageBlock; type blocks_ToggleBlock = ToggleBlock; type blocks_BulletedListItemBlock = BulletedListItemBlock; type blocks_NumberedListItemBlock = NumberedListItemBlock; type blocks_CodeBlock = CodeBlock; type blocks_LinkPreviewBlock = LinkPreviewBlock; type blocks_TableOfContentsBlock = TableOfContentsBlock; type blocks_Block = Block; type blocks_HeadingBlock = HeadingBlock; declare namespace blocks { export { blocks_ImageBlock as ImageBlock, blocks_ColumnListBlock as ColumnListBlock, blocks_ColumnBlock as ColumnBlock, blocks_ParagraphBlock as ParagraphBlock, blocks_CalloutBlock as CalloutBlock, blocks_QuoteBlock as QuoteBlock, blocks_HeadingBlockLevel1 as HeadingBlockLevel1, blocks_HeadingBlockLevel2 as HeadingBlockLevel2, blocks_HeadingBlockLevel3 as HeadingBlockLevel3, blocks_ChildPageBlock as ChildPageBlock, blocks_ToggleBlock as ToggleBlock, blocks_BulletedListItemBlock as BulletedListItemBlock, blocks_NumberedListItemBlock as NumberedListItemBlock, blocks_CodeBlock as CodeBlock, blocks_LinkPreviewBlock as LinkPreviewBlock, blocks_TableOfContentsBlock as TableOfContentsBlock, blocks_Block as Block, blocks_HeadingBlock as HeadingBlock, }; } declare type RichTextItem = ParagraphBlock['paragraph']['rich_text'][number]; declare type NotionIcon = CalloutBlock['callout']['icon']; /** @deprecated */ declare type BlockObjectResponse = Extract>['results'][number], { type: any; }>; declare type ChildrenByBlockId = { [id: string]: BlockObjectResponse[]; }; declare type ImageOrEmoji = { type: 'emoji'; payload: string; } | { type: 'image'; payload: string; }; declare type GetPageResponse = Awaited>; declare const mod_blocks: typeof blocks; type mod_RichTextItem = RichTextItem; type mod_NotionIcon = NotionIcon; type mod_BlockObjectResponse = BlockObjectResponse; type mod_ChildrenByBlockId = ChildrenByBlockId; type mod_ImageOrEmoji = ImageOrEmoji; type mod_GetPageResponse = GetPageResponse; declare namespace mod { export { mod_blocks as blocks, mod_RichTextItem as RichTextItem, mod_NotionIcon as NotionIcon, mod_BlockObjectResponse as BlockObjectResponse, mod_ChildrenByBlockId as ChildrenByBlockId, mod_ImageOrEmoji as ImageOrEmoji, mod_GetPageResponse as GetPageResponse, }; } declare const extractNotionIcon: (icon: NotionIcon) => ImageOrEmoji | null; export { BlockObjectResponse, ChildrenByBlockId, GetPageResponse, ImageOrEmoji, NotionIcon, RichTextItem, blocks, extractNotionIcon, mod as notionTypes };