import { Element } from 'slate'; import { DefinedType } from './constant.js'; import 'react'; /** * @description 判断是否是长度大于0的数组 */ declare const isPowerArray: (arr: unknown) => arr is unknown[]; /** * @description 判断是否对象 */ declare const isObject: (obj: unknown) => obj is Record; /** * @description 判断是否空对象 */ declare const isPowerObject: (obj: unknown) => obj is Record; /** * @description 判断目标是否存在 */ declare const isExist: (v: unknown) => boolean; /** * @description 是否是有效值 */ declare const isPowerValue: (value: unknown) => boolean; /** * @description 判断是否函数 */ declare const isFunction: (value: unknown) => value is (...args: unknown[]) => unknown; /** * @description 判断是否是浏览器 */ declare const isBrowser: boolean; /** * @description 是否是地址链接 */ declare const isUrl: (url: string) => boolean; /** * @description 判断是否是条件内的元素类型 * @export * @param {Element} element 元素 * @param {DefinedType[]} types 类型条件 * @return {*} */ declare function isIncludeElementTypes(element: Element, types: DefinedType[]): boolean; /** * @description 兼容性浏览器访问剪贴板 * @export * @param {*} text * @return {*} */ declare function copyToClipboard(text: string): Promise; export { copyToClipboard, isBrowser, isExist, isFunction, isIncludeElementTypes, isObject, isPowerArray, isPowerObject, isPowerValue, isUrl };