import { Data } from "josm"; import { AnimatableAllProperties, AnimatableAllPropertiesBaseArray, UnguidedAnimationOptions, GuidedAnimationOptions, ElementListOrElement } from "./../types"; type StaggerOptions = number | boolean; declare class InternalElementList extends Array { constructor(...elems: Array); anim(frame_frames: AnimatableAllProperties | AnimatableAllProperties[] | AnimatableAllPropertiesBaseArray, options?: UnguidedAnimationOptions | number, stagger?: StaggerOptions): Promise; anim(frame_frames: AnimatableAllProperties | AnimatableAllProperties[] | AnimatableAllPropertiesBaseArray, options: GuidedAnimationOptions, guidance: Data, stagger?: number): Promise; /** * Gets children matching given css-selector * @param selector css-selector filter childs similar to document.querySelector * @param alwaysReturnElementList when true, always return a ELementList instead of defaulting to a single instance when the query does only math once (defaults to false) */ childs(selector: string, alwaysReturnElementList: true): ElementList; /** * Gets children matching given css-selector * @param selector css-selector filter childs similar to document.querySelector * @param alwaysReturnElementList when true, always return a ELementList instead of defaulting to a single instance when the query does only math once (defaults to false) */ childs(selector: string, alwaysReturnElementList?: boolean): ElementListOrElement; /** * Gets all chilren up to the given depth * @param selector depth How deep children shall be gathered (defaults to 1) * @param alwaysReturnElementList when true, always return a ELementList instead of defaulting to a single instance when the query does only math once (defaults to false) */ childs(depth: number, alwaysReturnElementList: true): ElementList; /** * Gets all chilren up to the given depth * @param selector depth How deep children shall be gathered (defaults to 1) * @param alwaysReturnElementList when true, always return a ELementList instead of defaulting to a single instance when the query does only math once (defaults to false) */ childs(depth?: number, alwaysReturnElementList?: boolean): ElementListOrElement; /** * Gets children matching given css-selector or all up to given depth * @param selector_depth css-selector filter childs similar to document.querySelector or the depth * @param alwaysReturnElementList when true, always return a ELementList instead of defaulting to a single instance when the query does only match once (defaults to false) */ childs(selector_depth: string | number, alwaysReturnElementList: true): ElementList; /** * Removes node or element from list * @param valueOrIndices When 1 or more is given, The matching elements will be removed from the ElementList (Xrray implementation). When no parameter is given all Elements of the ElementList will be removed from the dom (dom implementation). */ remove(...valueOrIndices: Elem[] | number[]): this; private warn; private exec; private execChain; } export type ElementList = InternalElementList & Element; export declare const ElementList: { new (...elems: Array): ElementList; prototype: ElementList; }; export declare function initPrototype(): void; export {};