export interface Attributes { [name: string]: any; } export declare function createSvgElement(name: K, attributes?: Attributes): SVGElementTagNameMap[K]; export declare function setAttrs(element: Element, attributes: Attributes): void; export declare function isChildOf(parent: Node, child: Node): boolean; export declare function tryFind(array: T[], p: (item: T) => boolean): T | null; export declare function animate(func: (percent: number) => void, duration: number): void;