UNPKG

983 BTypeScriptView Raw
1import { h } from 'preact';
2import Tabular from '../tabular';
3import { BaseComponent, BaseProps } from './base';
4import { Status } from '../types';
5import Pipeline from '../pipeline/pipeline';
6import Header from '../header';
7import { Config } from '../config';
8interface ContainerProps extends BaseProps {
9 config: Config;
10 pipeline: Pipeline<Tabular>;
11 header?: Header;
12 width: string;
13 height: string;
14}
15interface ContainerState {
16 status: Status;
17 header?: Header;
18 data?: Tabular;
19}
20export declare class Container extends BaseComponent<ContainerProps, ContainerState> {
21 private readonly configContext;
22 private processPipelineFn;
23 constructor(props: any, context: any);
24 private processPipeline;
25 componentDidMount(): Promise<void>;
26 componentWillUnmount(): void;
27 componentDidUpdate(_: Readonly<ContainerProps>, previousState: Readonly<ContainerState>): void;
28 render(): h.JSX.Element;
29}
30export {};