UNPKG

@teambit/tester

Version:
23 lines (22 loc) 1.18 kB
import type { ComponentType } from 'react'; import type { SlotRegistry } from '@teambit/harmony'; import type { ComponentUI } from '@teambit/component'; import type { ComponentCompareUI } from '@teambit/component-compare'; import type { DocsUI } from '@teambit/docs'; export type EmptyStateSlot = SlotRegistry<ComponentType>; export declare class TesterUI { private component; private emptyStateSlot; static dependencies: import("@teambit/harmony").Aspect[]; static runtime: import("@teambit/harmony").RuntimeDefinition; stageKey?: string; constructor(component: ComponentUI, emptyStateSlot: EmptyStateSlot); /** * register a new tester empty state. this allows to register a different empty state from each environment for example. */ registerEmptyState(emptyStateComponent: ComponentType): this; getTesterCompare(): import("react/jsx-runtime").JSX.Element; static slots: ((registerFn: () => string) => SlotRegistry<ComponentType>)[]; static provider([component, componentCompare, docs]: [ComponentUI, ComponentCompareUI, DocsUI], config: any, [emptyStateSlot]: [EmptyStateSlot]): Promise<TesterUI>; } export default TesterUI;