import { iconName } from '../components/social-share-list/types'; export declare function format(first: string, middle: string, last: string): string; /** * Names camel case * * @param name * @returns */ export declare const camelCase: (name: any) => any; /** * get scroll container 获取父元素 直到有滚动属性的 * * @param el * @param vertical * @returns */ export declare const getScrollContainer: (el: HTMLElement, vertical?: string) => HTMLElement | (Window & typeof globalThis); export declare const getStyle: (element: any, styleName: any) => any; /** * is in container 获取是否在父元素显示 * * @param el * @param container * @returns */ export declare const isInContainer: (el: HTMLElement, container: HTMLElement, pos: { top: string; bottom: string; }) => boolean; export declare const isString: (obj: any) => boolean; export declare const isNumber: (obj: any) => boolean; export declare const isFunction: (obj: any) => boolean; export declare const isArray: (obj: any) => boolean; export declare const sleep: (milliseconds: any) => Promise; /** * Gets class prefix 获取class 前缀 * * @param suffix * @returns class prefix */ export declare function getClassPrefix(suffix: string): string; /** * 社媒svg * * @param {iconName} socila 社媒名称 * @returns {string} 社媒svg */ export declare function socialIcon(socila: iconName): string; /** * star svg * * @returns {string} star svg */ export declare function star(): string; export declare function debounce(fn: (arg: T) => void, delay: number): (arg: T) => void; /** * isMobile 判断PC OR MOBILE */ export declare function isMobile(): boolean; export declare const strategies: { isNonEmpty: (value: any, errorMsg: any, key: any) => { msg: any; key: any; }; minLength: (value: any, length: any, errorMsg: any, key: any) => { msg: any; key: any; }; isMobile: (value: any, errorMsg: any, key: any) => { msg: any; key: any; }; isEmail: (value: any, errorMsg: any, key: any) => { msg: any; key: any; }; }; export declare class Validator { cache: any[]; ruleItems: {}; multis: any; constructor(e: any); add(value: any, rules: any, key: any): void; validate(): any; validateItem(key: any, value: any): any; resetValue(): void; }