import { babelTypes, naslTypes, type ParseViewState } from '../../utils'; export interface CheckViewElementParams { viewElement: naslTypes.ViewElement; node: babelTypes.JSXElement; options: ParseViewState; } /** * 组件特性校验函数 * @param tag 组件标签名 * @param featureType 特性类型 * @param featureName 特性名称 * @param options 解析状态选项 * @param attr JSX属性节点 */ export declare function validateComponentFeature(tag: string, featureType: 'event' | 'slot' | 'prop', featureName: string, options: ParseViewState, attr: babelTypes.JSXAttribute): void; /** * 验证父组件约束 * @param tag 当前组件标签 * @param options 解析状态选项 * @param node JSX节点 * @returns 如果违反约束则返回错误,否则返回 undefined */ export declare function validateParentConstraints(tag: string, options: ParseViewState, node: babelTypes.JSXElement): void | undefined; /** * 对 ViewElement 进行校验 * 根据组件标签调用相应的校验函数 */ export declare function checkViewElement(params: CheckViewElementParams): void; //# sourceMappingURL=checkViewElement.d.ts.map