import { VirtualDOM } from '@youwol/flux-view'; import { EventStatus } from '..'; import { WorkersPool } from './workers-factory'; import { BehaviorSubject } from 'rxjs'; /** * @category View */ export type EventData = { id: string; text: string; status: EventStatus; }; /** * Presents the data (mostly in terms of observables) to be used by the views. * * @category View */ export declare class WorkersPoolViewState { /** * @group States */ readonly workersPool: WorkersPool; /** * @group Observables */ readonly cdnEvents$: { [k: string]: BehaviorSubject; }; constructor(params: { workersPool: WorkersPool; }); private add; } /** * Root component of the {@link WorkersPool} view. * * @category View */ export declare class WorkersPoolView implements VirtualDOM { static Class: string; /** * @group Immutable DOM Constants */ class: string; /** * @group States */ readonly workersPoolState: WorkersPoolViewState; /** * @group Immutable DOM Constants */ readonly children: VirtualDOM[]; constructor(params: { workersPool: WorkersPool; }); } /** * Component representing a particular worker. * * @category View */ export declare class WorkerCard implements VirtualDOM { static Class: string; /** * @group Immutable DOM Constants */ readonly class: string; /** * @group Immutable DOM Constants */ readonly style: { height: string; width: string; }; /** * @group Immutable DOM Constants */ readonly children: VirtualDOM[]; /** * @group Immutable Constants */ readonly workerId: string; /** * @group States */ readonly workersPoolState: WorkersPoolViewState; constructor(params: { workerId: string; workersPoolState: WorkersPoolViewState; }); } /** * Component representing a {@link CdnEventWorker}. * * @category View */ export declare class CdnEventView implements VirtualDOM { static Class: string; /** * @group Immutable DOM Constants */ readonly class: string; /** * @group Immutable DOM Constants */ readonly children: VirtualDOM[]; constructor(event: EventData); } /** * Component representing the title of a {@link WorkerCard}. * * @category View */ export declare class WorkerCardTitleView implements VirtualDOM { static Class: string; /** * @group Immutable DOM Constants */ readonly class: string; /** * @group Immutable DOM Constants */ readonly children: VirtualDOM[]; /** * @group Immutable Constants */ readonly workerId: string; /** * @group States */ readonly workersPoolState: WorkersPoolViewState; constructor(params: { workerId: string; workersPoolState: WorkersPoolViewState; }); }