import type { RouteRecordRaw } from 'vue-router'; import type { ProIframeRouteMeta } from './types'; export interface CreateIframeRouteOptions { path: string; name: string; /** * 静态内嵌地址(可选)。 * 与 meta.iframeDynamic / iframeUrlTemplate 二选一;动态场景可不传,跳转时用 query.url 等传参。 */ iframeUrl?: string; meta?: ProIframeRouteMeta & Record; /** 透传给 RouteRecordRaw 的其它字段 */ route?: Partial; } /** * 生成 iframe 内嵌路由配置,component 固定为 ProIframeRouteView * * @example 静态地址 * createIframeRoute({ * path: 'report', * name: 'Report', * iframeUrl: '/legacy/report', * meta: { title: '报表' }, * }) * * @example 动态地址(跳转时 buildIframeRouteLocation('ProIframeView', url)) * createIframeRoute({ * path: 'iframe/view', * name: 'ProIframeView', * meta: { title: '内嵌页', iframeDynamic: true }, * }) */ export declare function createIframeRoute(options: CreateIframeRouteOptions): RouteRecordRaw;