import { ExtractPropTypes, InjectionKey, PropType } from 'vue'; import { RuleItem } from 'async-validator'; export type Arrayable = T | T[]; export declare const formItemValidateState: readonly ["success", "error", ""]; export type FormItemValidateState = (typeof formItemValidateState)[number]; export interface FormItemRule extends RuleItem { trigger?: Arrayable; } export declare const formItemProps: { readonly prop: StringConstructor; readonly label: StringConstructor; readonly rules: PropType>; readonly showMessage: { readonly type: BooleanConstructor; readonly default: true; }; }; export type FormItemProps = Partial>; export declare const formItemEmits: {}; export type FormItemEmits = typeof formItemEmits; export interface FormItemContext extends FormItemProps { validate: (trigger: string, callback?: (isValid: boolean) => void) => Promise; } export declare const formItemContextKey: InjectionKey;