import { Source } from 'callbag'; import { StateLike, SubState } from 'callbag-state'; import { KeyedState, KeyFunc } from 'callbag-state-keyed'; import { LiveDOMComponentThis, LiveDOMRenderer } from 'render-jsx/dom'; import { TrackerComponentThis } from '../plugins'; interface KeyedListPropsWithKey { of: StateLike | Source; each: (item: SubState, index: Source & { get(): number | undefined; }) => Node; key: KeyFunc; } interface KeyedListPropsWithoutKey { of: KeyedState; each: (item: SubState, index: Source & { get(): number | undefined; }) => Node; } export declare type KeyedListProps = KeyedListPropsWithKey | KeyedListPropsWithoutKey; export declare function KeyedList(this: TrackerComponentThis & LiveDOMComponentThis, props: KeyedListProps, renderer: LiveDOMRenderer): any; export {};