import type { ManifestDataSource } from "@notionhq/custom-blocks"; import type { DataSourceHandle, SingleSourceDatabaseHandle } from "./notion-as-code/database.js"; export type CustomBlockDefaultBinding = { dataSourceResourceId: string; propertyResourceIdsByKey: Record; }; export type CustomBlockHandle = { readonly key?: string; readonly config: { readonly defaultBindings?: Readonly>; }; }; type CustomBlockDataSource = ManifestDataSource | DataSourceHandle | SingleSourceDatabaseHandle; export type CustomBlockOptions = { path: string; name?: string; description?: string; slashCommand?: string; dataSources?: Record; } & ({ static: true; command?: never; output?: never; } | { static?: false; command?: string; output?: string; }); /** Declare a browser project. Its filename under src/customBlocks supplies its key. */ export declare function customBlock(options: CustomBlockOptions): { config: { defaultBindings?: Record; source: { type: "static"; path: string; command?: never; output?: never; } | { type: "project"; path: string; command: string; output: string; }; manifest: { dataSources: Record; slashCommand?: string; description?: string; name?: string; version: 1; }; }; key?: string; _tag: "custom_block"; }; export {}; //# sourceMappingURL=custom-block.d.ts.map