import { Ref } from '@wakeadmin/demi'; export interface FatFormStepMethods { /** * 验证方法 */ validate(): Promise; /** * 步骤提交 */ beforeSubmit(value: any): Promise; /** * 渲染步骤 */ renderStepResult?: any; /** * 表单内容 */ renderFormResult?: { vnode: any; hasSections: boolean; }; } export interface FatFormStepState { /** * 资源释放 */ disposer: () => void; index: Ref; active: Ref; handleClick: () => void; } export interface FatFormStepsContextValue { /** * 注册 steps 实例 * @param instance * @returns 返回 disposer 用于解除注册 */ register(instance: FatFormStepMethods): FatFormStepState; } export declare function provideFatFormStepsContext(value: FatFormStepsContextValue): void; export declare function useFatFormStepsContext(): FatFormStepsContextValue | undefined; //# sourceMappingURL=fat-form-steps-context.d.ts.map