UNPKG

@lanaqi/rsr

Version:
15 lines (14 loc) 545 B
import { type ComponentType, type PropsWithChildren } from 'react'; import { type SecurityBundler } from './provider'; /** * 安全阻断器组件 * @param children 子组件 * @constructor */ export declare function SecurityBlocker({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element; /** * 安全阻断器包装 * @param Component 组件 * @param bundler 打包器 */ export declare const withSecurityBlocker: (Component: ComponentType, bundler: SecurityBundler) => () => import("react/jsx-runtime").JSX.Element;