import { Source } from 'callbag'; import { State } from 'callbag-state'; import { RendererLike } from 'render-jsx'; export interface WaitPropsSequentially { for: Source | Promise; then: (t: T) => Node; with?: () => Node; } export interface WaitPropsConcurrently { for: Source | Promise; then: (t: State) => Node; with?: () => Node; concurrently: true; } export declare type WaitProps = WaitPropsSequentially | WaitPropsConcurrently; export declare function Wait(props: WaitPropsSequentially, renderer: RendererLike): Node; export declare function Wait(props: WaitPropsConcurrently, renderer: RendererLike): Node;