/** * 统一约束 Iframe 链接格式: * 仅允许 http/https 协议,并要求主机、端口、路径等结构满足常见 URL 书写规则。 */ export declare const IFRAME_URL_REGEXP: RegExp; /** * 使用正则表达式校验 Iframe 地址合法性,避免仅校验协议前缀导致无效链接通过。 */ export declare const isIframeUrlValid: (value: string) => boolean; /** * 统一约束 iframe 的沙箱权限: * 允许常见嵌入内容运行脚本、提交表单和保持同源能力, * 但不放开顶层导航,避免第三方站点直接替换宿主页面。 */ export declare const IFRAME_SANDBOX = "allow-scripts allow-same-origin allow-forms allow-popups"; /** * 统一声明 iframe 可申请的浏览器能力,便于编辑态和导出态保持一致。 */ export declare const IFRAME_ALLOW = "fullscreen; clipboard-read; clipboard-write";