/** * Render GFM markdown to sanitized HTML. * * Returns empty string while WASM is loading, then the rendered HTML. * Re-renders automatically when the input changes. * * @param content - GFM markdown string * @returns Sanitized HTML string (or empty string while loading) * * @example * ```tsx * import { useMarkdown } from '@colletdev/react'; * * function Message({ markdown }: { markdown: string }) { * const html = useMarkdown(markdown); * return
; * } * ``` */ export declare function useMarkdown(content: string): string;