/** 驼峰化字符串 */ declare const camelize: (str: string) => any; /** * 解析样式文本,如果是对象则直接返回,如果是字符串则解析为对象 * * @param cssText 样式文本 * @param camel 是否驼峰化 */ declare const parseStyleText: (cssText?: string, camel?: boolean) => any; /** * 判断实例或对象是否有指定属性 * * @param instance 实例对象 * @param prop 属性名 */ declare const hasProp: (instance: any, prop: string) => boolean; export declare const skipFlattenKey: unique symbol; /** * 扁平化子节点 * * @param children 子节点 * @param filterEmpty 是否过滤空节点 */ declare const flattenChildren: (children?: any[], filterEmpty?: boolean) => any[]; /** * 获取插槽内容 * * @param self 组件实例 * @param name 插槽名 * @param options 插槽参数配置 */ declare const getSlot: (self: any, name?: string, options?: {}) => any[]; declare const findDOMNode: (instance: any) => any; /** * 获取组件内容 * * @param instance 组件实例 * @param prop 属性名 * @param options 参数配置 * @param execute 是否执行函数,如果为true且返回值为函数时,则执行函数并返回结果 */ declare const getComponent: (instance: any, prop?: string, options?: any, execute?: boolean) => any; /** * 获取元素 key * * @param ele 元素 */ declare const getKey: (ele: any) => any; /** * 获取元素样式 * * @param ele 元素 * @param camel 是否驼峰化 */ export declare function getStyle(ele: any, camel?: boolean): any; /** * 获取组件名称 * * @param opts 组件实例 */ export declare function getComponentName(opts: any): any; /** 判断节点是否为 Fragment */ export declare function isFragment(c: any): boolean; /** 判断内容是否为空,包括 undefined、null、空字符串、空数组 */ export declare function isEmptyContent(c: any): boolean; /** 判断节点是否为空节点 */ export declare function isEmptyElement(c: any): any; /** 判断插槽内容是否为空 */ export declare function isEmptySlot(c: any): any; /** 判断节点是否为文本节点 */ export declare function isStringElement(c: any): any; /** * 获取非空子节点 * * @param children 子节点 */ export declare function filterEmpty(children?: any[]): any[]; /** * 获取有效子节点 * * @param children 子节点 */ export declare function filterEmptyWithUndefined(children: any[]): any[] | undefined; /** 判断节点是否为元素节点 */ declare function isValidElement(element: any): any; /** * 从 props 或插槽获取指定内容 * * @param slots 插槽对象 * @param props 插槽名 * @param prop 属性名 */ declare function getPropsSlot(slots: any, props: any, prop?: string): any; export declare const getTextFromElement: (ele: any) => any; /** 判断数据是否响应式 */ declare function isResponsiveData(data: any): boolean; export { camelize, findDOMNode, flattenChildren, getComponent, getKey, getPropsSlot, getSlot, hasProp, isResponsiveData, isValidElement, parseStyleText, }; export default hasProp;