import type { CreatePageInput, CreatePageResult, GetPageResult, GetUserResult, ListUsersInput, ListUsersResult, NotionPageId, NotionUserId, UpdatePageInput, UpdatePageResult, UseDataSourceOptions } from "../types.js"; import { type CustomBlockHostState, type DataSourceQueryView } from "./hostState.js"; import type { ManifestLoadResult } from "./loadManifest.js"; import type { CustomBlockManifest } from "./manifest.js"; import type { InitMessage } from "./messages/init.js"; import { type MessageLogEntry } from "./SandboxBridge.js"; export type { MessageLogEntry }; export declare const customBlockHost: { sendReady: (manifestResult: ManifestLoadResult) => void; awaitInit: (signal?: AbortSignal) => Promise; subscribe: (listener: () => void) => () => boolean; getState: () => CustomBlockHostState; getManifest: () => CustomBlockManifest | null; /** * Apply an `init` payload directly, bypassing the postMessage handshake for * standalone preview state. */ setMockState: (message: InitMessage) => void; postResize: (height: number) => void; }; export declare const customBlockDataSources: { query: (key: string, options?: UseDataSourceOptions) => void; getView: (hostState: CustomBlockHostState, key: string) => DataSourceQueryView; }; export declare const messageLog: { getSnapshot: () => readonly MessageLogEntry[]; subscribe: (listener: () => void) => () => boolean; }; /** * Page-related SDK APIs exposed under `sdk.pages.*`. */ export declare const pages: { /** * Creates a new Notion page. */ create: (input: CreatePageInput) => Promise; /** * Fetches a page by id. */ get: (pageId: NotionPageId) => Promise; /** * Updates an existing page. */ update: (input: UpdatePageInput) => Promise; /** * Soft-delete a page by archiving it. */ delete: (pageId: NotionPageId) => Promise; }; /** * User-related SDK APIs exposed under `sdk.users.*`. */ export declare const users: { /** * Lists users visible in the current custom block workspace. */ list: (input?: ListUsersInput) => Promise; /** * Fetches a user by id. */ get: (userId: NotionUserId) => Promise; }; //# sourceMappingURL=sandboxClient.d.ts.map