/** * Context is an alternative implementation of Ref which is capable of traversing up * in a graph of to find if any ancestors contain the given value. This is allows sharing values * across otherwise isolated environments. * @since 0.11.0 */ import * as E from './Env'; import * as KV from './KV'; import * as Ref from './Ref'; import { SchedulerEnv } from './Scheduler'; /** * Context is an extensions of Ref which traverse up in context to find the closest environment * which contains the expected value. * @since 0.11.0 * @categeory Model */ export interface Context extends Ref.Ref { } /** * @since 0.11.0 * @category Constructor */ export declare const fromKV: (kv: KV.KV) => Context & KV.KV; /** * Allows subscribing to the updates ensuring the current KV receives all * updates from an Ancestor. * @since 0.9.2 * @category Combinator */ export declare function useKV(kv: KV.KV): E.Env; /** * @since 0.13.7 * @category Constructor */ export declare const kv: (initial: E.Env, options?: KV.Options | undefined) => Context & KV.KV; //# sourceMappingURL=Context.d.ts.map