import { Callback, DomElementType, ElementCallback, ElementMapper, ElementOrLightquery, ElementReducer, ElementsOrLightquery, GenericCallback, MapperFunction, Predicate, Selector } from "./utils/typedefs"; import LightqueryFactory from "./LightqueryFactory"; export type LightqueryCollection_onFirst = GenericCallback; export type LightqueryCollection_setterRoot = GenericCallback; export type LightqueryCollection_setValueFactory = (oldValue: T, destObject: U, key: string) => V; export type LightqueryCollection_classManipHandler = (classList: DOMTokenList, clazz: string, element: Element, $element: LightqueryCollection) => R; export type LightquerySetValueFactory = LightqueryCollection_setValueFactory; export declare class LightqueryCollectionImplDetails{ public readonly self: LightqueryCollection; public readonly selector: Selector; public readonly previousResults: Iterable; public readonly elements: DomElementType[]; public readonly lightquery: LightqueryFactory; public readonly $: LightqueryFactory; public constructor(self: LightqueryCollection, selector: Selector, context?: DomElementType, previousResults?: Iterable); protected __cleanElements(elements: any[]): DomElementType[]; public makeIterable(): void; public getSetMethod(options: { value: T|LightqueryCollection_setValueFactory, key: string, strictDefault?: U, looseDefault?: V, setterRoot?: LightqueryCollection_setterRoot}): T|U|V; public defaultValue(options: { strict: T, loose: U }): T|U; public ifStrict(callback: Callback): void; public doOnFirst(options: { onFirst: LightqueryCollection_onFirst, nameForStrict: string, defaultValue?: U }): R|U; public arrayMethodDelegate(options: { method: string, func: string|ElementMapper, args?: any[] }): T[]|any[]; public classManip(options: { classNames: string, nameForStrict: string, ifHasClass?: LightqueryCollection_classManipHandler, ifDoesNotHaveClass?: LightqueryCollection_classManipHandler, anyCase?: LightqueryCollection_classManipHandler }): void; public eventShorthand(options: { eventName: string, listener?: EventListener, nameForStrict: string }): LightqueryCollection; public getCssProperty(element: DomElementType, property: string): string; public setCssProperty(element: DomElementType, property: string, value: number|string): string; public getElement(element: DomElementType): Element; public selectorFiltering(ret: Element[], selector?: string): LightqueryCollection; public dimensionShorthand(args: { value: string|number|undefined, nameForStrict: string, onFirst: LightqueryCollection_onFirst, cssProperty: "width"|"height" }): LightqueryCollection|number|null; } declare class LightqueryCollection implements Iterable{ protected readonly __: LightqueryCollectionImplDetails; public [Symbol.iterator](); public readonly length: number; public constructor(selector: Selector, context?: DomElementType, previousResults?: Iterable); public ready(callback: Callback): this; public resize(listener: EventListener): this; public forEach(callback: ElementCallback): this; public map(mapper: string|ElementMapper, ...args: any[]): U[]|any[]; public filter(predicate: string|Predicate, ...args: any[]): LightqueryCollection; public reduce(reducer: ElementReducer, acc?: Acc): Acc|undefined; public all(predicate: string|Predicate, ...args: any[]): boolean; public any(predicate: string|Predicate, ...args: any[]): boolean; public none(predicate: string|Predicate, ...args: any[]): boolean; public notAll(predicate: string|Predicate, ...args: any[]): boolean; public toArray(): DomElementType[]; public eq(index: number): LightqueryCollection|null; public first(): LightqueryCollection|null; public last(): LightqueryCollection|null; public text(value?: LightquerySetValueFactory|string|number|null): this|string|null; public val(value?: LightquerySetValueFactory|string|number|null): this|string|null; public html(value?: LightquerySetValueFactory|string|number|null): this|string|null; public attr(name: string, value?: LightqueryCollection_setValueFactory|string|number|null): this|string|null; public prop(name: string, value?: LightqueryCollection_setValueFactory|string|number|null): this|string|number|null; public data(name: string, value?: LightquerySetValueFactory|string|number|null): this|string|null; public hasAttr(attr: string): boolean; public hasProp(prop: string): boolean; public hasData(data: string): boolean; public hasClass(className: string): boolean; public matches(selector: string): boolean public addClass(classNames: string): this; public removeClass(classNames: string): this; public toggleClass(classNames: string): this; public removeAttr(attr: string): this; public removeProp(prop: string): this; public removeData(data: string): this; public on(eventNames: string, listener: EventListener): this; public off(eventNames: string, listener: EventListener): this; public trigger(eventNames: string, options?: Object): this; public closest(selector: string): LightqueryCollection; public children(selector?: string): LightqueryCollection; public parent(selector?: string): LightqueryCollection; public parents(selector?: string): LightqueryCollection; public find(selector?: string): LightqueryCollection; public has(selector: string): LightqueryCollection; public prevAll(selector?: string): LightqueryCollection; public nextAll(selector?: string): LightqueryCollection; public siblings(selector?: string): LightqueryCollection; public prev(): LightqueryCollection; public next(): LightqueryCollection; public append(elements: ElementsOrLightquery): this; public appendTo(element: ElementOrLightquery|string): this; public prepend(elements: ElementsOrLightquery): this; public prependTo(element: ElementOrLightquery|string): this; public before(elements: ElementsOrLightquery): this; public insertBefore(element: ElementOrLightquery|string): this; public after(elements: ElementsOrLightquery): this; public insertAfter(element: ElementOrLightquery|string): this; public remove(): LightqueryCollection; public empty(): this; public add(selector: Selector, context?: DomElementType): LightqueryCollection; public css(properties: string|string[]|Record, value?: string|number): this|string|number|null; public cssVar(variable: string, value?: string|number): this|string|number|null; public animate(keyframes?: Keyframe[]|PropertyIndexedKeyframes, options?: KeyframeAnimationOptions|number, fillDirection?: "forwards"|"backwards"|"none"): this; public click(listener?: EventListener): this; public doubleClick(listener?: EventListener): this; public mouseUp(listener?: EventListener): this; public mouseDown(listener?: EventListener): this; public mouseEnter(listener?: EventListener): this; public mouseLeave(listener?: EventListener): this; public hover(onEnter: EventListener, onLeave: EventListener): this; public focus(listener?: EventListener): this; public blur(listener?: EventListener): this; public change(listener?: EventListener): this; public input(listener?: EventListener): this; public submit(listener?: EventListener): this; public contextMenu(listener?: EventListener): this; public width(value?: string|number): this|number|null; public height(value?: string|number): this|number|null; public borderBoxWidth(): number|null; public borderBoxHeight(): number|null; public marginBoxWidth(): number|null; public marginBoxHeight(): number|null; } export default LightqueryCollection;