import { Container } from 'pixi.js'; import { D3Selection, DrawerTarget } from '../../types'; declare class Selector { /** * Hide/Show all elements under selector. * @param target * Svg container or canvas container. * @param visible * Set the element to be visible or invisible. */ setVisible(target: Maybe, visible: boolean): void; /** * Recursively find elements matching `className`. * @param target * Svg container or canvas container. * @param className * The className of the element. */ getChildren(target: D3Selection, className: string): D3Selection; getChildren(target: Container, className: string): Container[]; getChildren(target: DrawerTarget, className: string): D3Selection | Container[]; /** * Find whether there is a subcontainer in the direct children. * @param target * Svg container or canvas container. * @param className * The className of the container. */ getDirectChild(target: D3Selection, className: string): D3Selection; getDirectChild(target: Container, className: string): Container; getDirectChild(target: DrawerTarget, className: string): DrawerTarget; /** * Create a subcontainer. * @param target * Svg container or canvas container. * @param className * The className of the container. */ createGroup(target: D3Selection, className: string): D3Selection; createGroup(target: Container, className: string): Container; createGroup(target: DrawerTarget, className: string): DrawerTarget; /** * Remove the container from the parent. * @param target * Svg container or canvas container. */ remove(target: D3Selection): D3Selection; remove(target: Container): Container; remove(target: DrawerTarget): DrawerTarget; } /** * A collection of methods containing element operations. */ export declare const selector: Selector; export {};