import { Event } from "../event"; import { Subscribe } from "../types"; interface Observable { id: number; internalDeps(): Observable[]; } declare type Call = () => any; declare type Sink = (value: V) => any; declare type EventSink = Sink>; declare function toString(): string; declare function isInTransaction(): boolean; declare function soonButNotYet(obs: Observable, f: Call): void; declare function afterTransaction(obs: Observable, f: Call): void; declare function whenDoneWith(obs: Observable, f: Call): any; declare function inTransaction(event: Event | undefined, context: any, f: Function, args: any[]): any; declare function currentEventId(): number | undefined; declare function wrappedSubscribe(obs: Observable, subscribe: Subscribe, sink: EventSink): () => void; declare function hasWaiters(): boolean; declare const _default: { toString: typeof toString; whenDoneWith: typeof whenDoneWith; hasWaiters: typeof hasWaiters; inTransaction: typeof inTransaction; currentEventId: typeof currentEventId; wrappedSubscribe: typeof wrappedSubscribe; afterTransaction: typeof afterTransaction; soonButNotYet: typeof soonButNotYet; isInTransaction: typeof isInTransaction; }; export default _default;