UNPKG

@notion-md-converter/core

Version:
43 lines (42 loc) 3.87 kB
import type { Block, BookmarkBlock, BreadcrumbBlock, BulletedListItemBlock, CalloutBlock, CodeBlock, ColumnBlock, ColumnListBlock, DividerBlock, EmbedBlock, EquationBlock, FileBlock, FileObject, Heading1Block, Heading2Block, Heading3Block, ImageBlock, LinkPreviewBlock, NotionExternalFile, NotionInternalFile, NumberedListItemBlock, ParagraphBlock, PdfBlock, QuoteBlock, RootBlock, SyncedBlock, TableBlock, TableOfContentsBlock, TableRowBlock, ToDoBlock, ToggleBlock, VideoBlock } from "@notion-md-converter/types"; import { type Client } from "@notionhq/client"; export declare const isRootBlock: (block: Block) => block is RootBlock; export declare const isNotionInternalFile: (file: FileObject) => file is NotionInternalFile; export declare const isNotionExternalFile: (file: FileObject) => file is NotionExternalFile; export declare const isBookmarkBlock: (block: Block) => block is BookmarkBlock; export declare const isBreadcrumbBlock: (block: Block) => block is BreadcrumbBlock; export declare const isBulletedListItemBlock: (block: Block) => block is BulletedListItemBlock; export declare const isCalloutBlock: (block: Block) => block is CalloutBlock; export declare const isCodeBlock: (block: Block) => block is CodeBlock; export declare const isColumnListBlock: (block: Block) => block is ColumnListBlock; export declare const isColumnBlock: (block: Block) => block is ColumnBlock; export declare const isDividerBlock: (block: Block) => block is DividerBlock; export declare const isEquationBlock: (block: Block) => block is EquationBlock; export declare const isFileBlock: (block: Block) => block is FileBlock; export declare const isHeading1Block: (block: Block) => block is Heading1Block; export declare const isHeading2Block: (block: Block) => block is Heading2Block; export declare const isHeading3Block: (block: Block) => block is Heading3Block; export declare const isImageBlock: (block: Block) => block is ImageBlock; export declare const isLinkPreviewBlock: (block: Block) => block is LinkPreviewBlock; export declare const isNumberedListItemBlock: (block: Block) => block is NumberedListItemBlock; export declare const isParagraphBlock: (block: Block) => block is ParagraphBlock; export declare const isPdfBlock: (block: Block) => block is PdfBlock; export declare const isQuoteBlock: (block: Block) => block is QuoteBlock; export declare const isSyncedBlock: (block: Block) => block is SyncedBlock; export declare const isTableBlock: (block: Block) => block is TableBlock; export declare const isTableRowBlock: (block: Block) => block is TableRowBlock; export declare const isTableOfContentsBlock: (block: Block) => block is TableOfContentsBlock; export declare const isToDoBlock: (block: Block) => block is ToDoBlock; export declare const isToggleBlock: (block: Block) => block is ToggleBlock; export declare const isVideoBlock: (block: Block) => block is VideoBlock; export declare const isEmbedBlock: (block: Block) => block is EmbedBlock; /** * @deprecated This function will be removed in a future release as we plan to remove the dependency on @notionhq/client. * Please be aware that the API specification may change significantly. */ export declare const $getPageFullContent: (client: Client, blockId: string) => Promise<Block[]>; /** * @deprecated This function will be removed in a future release as we plan to remove the dependency on @notionhq/client. * Please be aware that the API specification may change significantly. */ export declare const $getDatabasePages: (client: Client, databaseId: string) => Promise<(import("@notionhq/client/build/src/api-endpoints").PageObjectResponse | import("@notionhq/client/build/src/api-endpoints").PartialPageObjectResponse | import("@notionhq/client/build/src/api-endpoints").DatabaseObjectResponse | import("@notionhq/client/build/src/api-endpoints").PartialDatabaseObjectResponse)[]>;