claude-web/node_modules/@interactjs/core/InteractableSet.d.ts

26 lines
881 B
TypeScript

import type { Interactable } from '@interactjs/core/Interactable';
import type { OptionsArg, Options } from '@interactjs/core/options';
import type { Scope } from '@interactjs/core/scope';
import type { Target } from '@interactjs/core/types';
declare module '@interactjs/core/scope' {
interface SignalArgs {
'interactable:new': {
interactable: Interactable;
target: Target;
options: OptionsArg;
win: Window;
};
}
}
export declare class InteractableSet {
list: Interactable[];
selectorMap: {
[selector: string]: Interactable[];
};
scope: Scope;
constructor(scope: Scope);
new(target: Target, options?: any): Interactable;
getExisting(target: Target, options?: Options): Interactable;
forEachMatch<T>(node: Node, callback: (interactable: Interactable) => T): T | void;
}