UNPKG

kui-shell

Version:

This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool

47 lines (46 loc) 1.14 kB
import { UI } from '@kui-shell/core'; interface TestParam { command: string; testName?: string; metadata: { name: string; namespace?: string; }; } export declare type MMRExpectMode = Label & (PlainTextContent | YamlContentWithEditor); interface Label { mode: string; label?: string; } interface PlainTextContent { content?: string; contentType: 'text/plain' | 'text/markdown' | 'text/html' | 'yaml'; editor?: false; } interface YamlContentWithEditor { content: object; contentType: 'yaml'; editor: true; } export declare class TestMMR { readonly param: TestParam; constructor(param: TestParam); name(): void; namespace(): void; kind(kind: string): void; badges(badges: UI.BadgeSpec[]): void; modes(expectModes: MMRExpectMode[], options?: { testWindowButtons?: boolean; }): void; toolbarButtons(buttons: { mode: string; label?: string; command: string; kind: 'drilldown' | 'view'; }[]): void; toolbarText(toolbarText: { type: string; text: string; }): void; } export {};