import type { KnowledgeDocument, KnowledgeContext } from './types'; import type { ReactNode } from 'react'; export interface DocumentRenderers { markdown?: (content: string) => ReactNode; mdx?: (content: string) => ReactNode; richText?: (content: string) => ReactNode; text?: (content: string) => ReactNode; } interface DocumentPreviewProps { document: KnowledgeDocument; onDocumentUpdate?: (document: KnowledgeDocument) => Promise; editable?: boolean; mode?: 'create' | 'view'; renderers?: DocumentRenderers; availableDocuments?: KnowledgeDocument[]; knowledgeContexts?: KnowledgeContext[]; } export declare function DocumentPreview({ document: initialDocument, onDocumentUpdate, editable, mode, renderers, availableDocuments, knowledgeContexts, }: DocumentPreviewProps): import("react/jsx-runtime").JSX.Element; export {};