kui-shell
Version:
This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool
42 lines (41 loc) • 1.25 kB
TypeScript
declare class ClassList {
readonly classList: string[];
readonly length: number;
forEach(fn: (str: string) => void): void;
add(_: string): number;
contains(_: string): boolean;
remove(_: string): void;
}
export declare class ElementMimic {
private readonly _isFakeDom;
value: string;
innerText: string;
innerHTML: string;
className: string;
classList: ClassList;
nodeType: string;
style: {
[key: string]: string;
};
children: ElementMimic[];
cells: ElementMimic[];
rows: ElementMimic[];
private _attrs;
focus(): void;
appendChild(c: ElementMimic): number;
getAttribute(k: string): string;
setAttribute(k: string, v: string): string;
remove(): void;
removeAttribute(k: string): string;
cloneNode(): ElementMimic;
querySelectorAll(selector: string): ElementMimic[];
querySelector(): ElementMimic;
addEventListener(): boolean;
hasStyle(style: string, desiredValue?: number | string): boolean | string;
recursiveInnerTextLength(): number;
insertRow(idx: number): ElementMimic;
insertCell(idx: number): ElementMimic;
static isFakeDom(dom: any): dom is ElementMimic;
}
export default function (): void;
export {};