import { Client } from '@notionhq/client'; import { Plugin } from './plugin'; import { Block, BlockRenderer, ExtensionFunc } from './types'; export interface NotionRendererArgs { /** * List of custom renderers. */ renderers?: BlockRenderer[]; /** * List of extensions to improve existing blocks. */ extensions?: ExtensionFunc[]; /** * NotionClient used to query block children. * If not defined, blocks with children will not be fully supported. */ client?: Client; } export declare class NotionRenderer { private renderers; private readonly extensions; readonly client?: Client; constructor(args?: NotionRendererArgs); addBlockRenderer(renderer: BlockRenderer): void; addExtension(extension: ExtensionFunc): void; render(...blocks: Block[]): Promise; renderBlock(blockId: string): Promise; use(...plugins: ReturnType[]): Promise; } //# sourceMappingURL=notion-renderer.d.ts.map