import type { Client, isFullPage, isFullDatabase } from '@notionhq/client'; /** * @module * Types from the internal Notion JS API, exposed for use in this project. */ type Asserts = Function extends (input: any) => input is infer Type ? Type : never; export type ClientOptions = NonNullable[0]>; export interface QueryDatabaseParameters extends NonNullable[0]> {} export type DatabasePropertyConfigResponse = Asserts['properties'][string]; export type PageObjectResponse = Asserts; export type PageProperty = PageObjectResponse['properties'][string]; export type EmojiRequest = Extract['emoji']; export type RichTextItemResponse = Extract['rich_text'][number]; export type NotionPageData = Pick< PageObjectResponse, 'icon' | 'cover' | 'archived' | 'in_trash' | 'url' | 'public_url' | 'properties' >; export type FileObject = { type: 'external'; external: { url: string } } | { type: 'file'; file: { url: string } };