import { ComponentHost } from '../core'; import type { FC, JNode, WithSlots } from '../jsx'; export declare function Lazy(props: (Parameters[0] extends object ? Parameters[0] : {}) & { loader: () => Promise; } & WithSlots<{ loading?: JNode; error?: (data: { error: any; }) => JNode; }>, host: ComponentHost): (Node | ComponentHost)[]; export declare function lazy(loader: () => Promise, options?: { /** 错误发生时渲染的函数组件。组件的 props 中会传递 error 参数。 */ 'slot:error'?: (props: { error: any; }) => JNode; /** 加载时渲染的函数组件。 */ 'slot:loading'?: JNode; }): T;