/** * WOPI discovery & URL helpers. The manager holds a single WopiRegistry * populated from a discovery XML document. */ export interface WopiApp { name: string; urlSrc: string; ext: string | null; } export declare class WopiRegistry { /** Apps keyed by MIME type. */ private readonly byMime; /** Apps keyed by file extension. */ private readonly byExt; /** * Parse a WOPI discovery XML document and populate the registry. * Discovery is a `` with nested `` and `` tags. */ static load(url: string, fetchImpl?: typeof fetch): Promise; /** Find the edit URL for a given file (by name) and MIME type. */ getEditUrl(name: string, mime: string | null): string | null; /** Find the view URL for a given file (by name) and MIME type. */ getViewUrl(name: string, mime: string | null): string | null; /** True if the registry knows about any file types. */ get hasApps(): boolean; } //# sourceMappingURL=wopi.d.ts.map