import type { Component } from "svelte"; export declare const DocsmintSharedDocumentHost: Component; export interface ProseMirrorNode { type: string; text?: string; content?: ProseMirrorNode[]; attrs?: Record; marks?: Array<{ type: string; attrs?: Record }>; } export type ProseMirrorDoc = ProseMirrorNode & { content?: ProseMirrorNode[] }; export type SharedAttachmentObjectUrls = string[]; export declare function renderSharedDocument(doc: ProseMirrorDoc): string; export declare function markMarkdownTaskItems(html: string): string; export declare function sharedAttachmentHeaders(token: string, password?: string): HeadersInit; export declare function hydrateSharedAttachmentImages(root: ParentNode, token: string, password?: string): Promise; export declare function waitForSharedDocumentImages(root: ParentNode): Promise;