import type { InteractionFailure, InteractionLocalBehaviors } from "../../types/interaction.types.js"; import type { Echo, LocusActionPayloads } from "../../types/locus.types.js"; import type { DocumentLiveMap, LiveMapAuthority, LiveMapDocumentLibrary, LiveMapLibraries, } from "../../types/livemap.types.js"; import type { HostedDocumentContinuation } from "./continuation.types.js"; type HostedInteractions = Readonly<{ local: InteractionLocalBehaviors; onFailure?: (failure: InteractionFailure) => void; }>; type ReplicaEcho = Echo; export function continue_hosted_document>(options: Readonly<{ echo: TEcho; root: Element; document?: never; interactions?: HostedInteractions; }>): Promise & Readonly<{ echo: TEcho }>>; export function continue_hosted_document>(options: Readonly<{ echo: TEcho; root: Element; document: TDocument; interactions?: HostedInteractions; }>): Promise & Readonly<{ echo: TEcho }>>; export function continue_hosted_document>(options: Readonly<{ echo: TEcho; root: Element; document?: undefined; interactions?: HostedInteractions; }>): Promise & Readonly<{ echo: TEcho }>>; export async function continue_hosted_document(options: Readonly<{ echo: ReplicaEcho; root: Element; document?: LiveMapDocumentLibrary; interactions?: HostedInteractions; }>): Promise { const implementation = await import("./continue-hosted-document.js"); return implementation.continue_hosted_document_internal(options); }