export declare const BLOCKED_RESOURCE_CLASS = "theia-blocked-resource"; export declare const BLOCKED_RESOURCE_ALLOW_CLASS = "theia-blocked-resource-allow"; export declare const BLOCKED_RESOURCE_WRAPPER_CLASS = "theia-blocked-resource-wrapper"; /** * Configures URL prefixes whose external resources may be rendered without being blocked. * A resource is allowed when its URL starts with one of the configured prefixes, so entries * should include the full origin (e.g. `https://example.com/`) to avoid unintended matches. */ export declare function setAllowedResourceUrls(urls: readonly string[]): void; /** * Neutralizes resources that would otherwise load or execute automatically. * * Active embedded content (`iframe`, `frame`, `object`, `embed`) is always blocked because it can * run active content with the IDE's origin, which is unsafe even for trusted, user-authored Markdown. * External URL resources (images, stylesheets, SVG references, ...) are only blocked when * {@link blockExternalUrls} is `true`; trusted content passes `false` to render them directly. */ export declare function blockExternalResources(root: ParentNode & { ownerDocument: Document; }, blockExternalUrls?: boolean): void; export declare function restoreBlockedResource(placeholder: Element): Element | undefined; //# sourceMappingURL=block-external-resources.d.ts.map