import { Client } from "@notionhq/client"; import { DatabaseObjectResponse, PageObjectResponse, PartialPageObjectResponse } from "@notionhq/client/build/src/api-endpoints"; export declare const notion: Client; export declare const getDatabase: (databaseId: string) => Promise; /** * This function pulls out the required types for notion-on-next: slug, title, and cover image to make these properties more accessible. * It also accepts a generic type which is meant to be passed down from getParsedPages, but can be used elsewhere. */ export declare const parsePages: (pages: (PageObjectResponse | PartialPageObjectResponse)[], database?: DatabaseObjectResponse) => Promise; /** * This is a cached function that fetches all pages from a Notion database. */ export declare const getPages: (databaseId: string, filter?: any, sorts?: any) => Promise<(PageObjectResponse | PartialPageObjectResponse)[]>; /** * Gets all pages from a Notion database and parses them into a more usable format. * Accepts a generic type, which is generated for you after running setup in notion-on-next. * The generic type should be a version of PageObjectResponse, but with your database's properties. */ export declare const getParsedPages: (databaseId: string, filter?: any, sorts?: any) => Promise; export declare const getBlocks: (pageId: string) => Promise<(import("@notionhq/client/build/src/api-endpoints").PartialBlockObjectResponse | import("@notionhq/client/build/src/api-endpoints").BlockObjectResponse)[]>;