import { autoResize } from "./autoResize.js"; import type { NotionDataSource } from "./bridge/dataSources/dataSource.js"; import type { NotionBlockId } from "./bridge/ids.js"; import type { CustomBlockManifest } from "./bridge/manifest.js"; import type { CustomBlockPage } from "./bridge/pages/page.js"; import type { NotionParent } from "./bridge/parent.js"; import type { NotionTheme } from "./bridge/theme.js"; import type { NotionUser } from "./bridge/users/user.js"; export type CustomBlockState = { status: "uninitialized"; theme: NotionTheme; } | { status: "initialized"; theme: NotionTheme; blockId: NotionBlockId; parent: NotionParent; page: CustomBlockPage; currentUser: NotionUser; dataSources: NotionDataSource[]; }; /** * Framework-neutral runtime state APIs for a custom block. Call `initCustomBlock` * before reading initialized values, and use `subscribe` to react to host pushes. */ export declare const customBlock: { subscribe(listener: () => void): () => void; getState(): CustomBlockState; getCurrentUser(): NotionUser; getTheme(): NotionTheme; getBlockId(): NotionBlockId; getParent(): NotionParent; getPage(): CustomBlockPage; getManifest(): CustomBlockManifest | null; autoResize: typeof autoResize; }; //# sourceMappingURL=customBlock.d.ts.map