/** * Utility helpers */ /** * Next tick - Execute callback after DOM updates */ export declare function nextTick(callback: () => void): void; /** * Execute callback when DOM is ready */ export declare function ready(callback: () => void): void; /** * Debounce function */ export declare function debounce any>(fn: T, delay: number): (...args: Parameters) => void; /** * Throttle function */ export declare function throttle any>(fn: T, delay: number): (...args: Parameters) => void; /** * Deep clone object */ export declare function clone(obj: T): T; /** * Check if value is object */ export declare function isObject(value: any): value is Record; /** * Check if running in browser */ export declare function isBrowser(): boolean; export declare function uniqueId(prefix?: string): string; export declare function deepEqual(a: any, b: any): boolean; /** * Check if element is inside a g-static parent */ export declare function isInStaticParent(element: Element, root: HTMLElement): boolean; /** * Check whether GyosJS must leave an element and its subtree untouched. */ export declare function isInIgnoredTree(element: Element): boolean; export declare function hasUnsafePropertyPath(path: string): boolean; export declare const DEBUG: () => any; export declare const DEBUG_VERBOSE: () => any; /** * Walk through DOM tree and return elements that match callback */ export declare function walkerDOM(el: HTMLElement, acceptFn: (el: HTMLElement) => boolean, skip?: number): HTMLElement[]; export declare function log(...args: unknown[]): void; /** * Check if element or any ancestor has structural directive */ export declare function hasStructuralParent(el: Element): boolean; //# sourceMappingURL=helpers.d.ts.map