import { ActyxEvent, EventFns, Metadata, StateWithProvenance, Where } from '@actyx/sdk'; import { Map } from 'immutable'; import { Observable, Subject, Subscription as RxSubscription } from '../node_modules/rxjs'; import { PondStateTracker } from './pond-state'; import { Fish } from './types'; export declare type CommandFn = (state: S) => I; export declare type FishJar = Readonly<{ enqueueCommand: (command: C, onComplete: () => void, onError: (err: any) => void) => void; publicSubject: Observable

; dispose: () => void; dump: () => string; }>; declare type CommandInput = Readonly<{ type: 'command'; command: CommandFn; onComplete: () => void; onError: (err: any) => void; }>; export declare type CommandPipeline = Readonly<{ subject: Subject>; subscription: RxSubscription; }>; declare type StartedFish = { fish: Fish; startedFrom: ActyxEvent; }; export declare type StartedFishMap = Map>; export declare const FishJar: { commandPipeline: (pondStateTracker: PondStateTracker, semantics: string, name: string, handler: (input: I) => Promise, stateSubject: Observable>, eventFilter: (t: Metadata) => boolean) => Readonly<{ subject: Subject; onComplete: () => void; onError: (err: any) => void; }>>; subscription: RxSubscription; }>; observeAll: (eventStore: EventFns, _pondStateTracker: PondStateTracker) => (firstEvents: Where, makeFish: (seed: ESeed) => Fish | undefined, expireAfterSeed?: number | undefined) => Observable>; }; export {};