1 | import type { ApolloCache } from "../../core/index.js";
|
2 | export interface ReactiveVar<T> {
|
3 | (newValue?: T): T;
|
4 | onNextChange(listener: ReactiveListener<T>): () => void;
|
5 | attachCache(cache: ApolloCache<any>): this;
|
6 | forgetCache(cache: ApolloCache<any>): boolean;
|
7 | }
|
8 | export type ReactiveListener<T> = (value: T) => any;
|
9 | export declare const cacheSlot: {
|
10 | readonly id: string;
|
11 | hasValue(): boolean;
|
12 | getValue(): ApolloCache<any> | undefined;
|
13 | withValue<TResult, TArgs extends any[], TThis = any>(value: ApolloCache<any>, callback: (this: TThis, ...args: TArgs) => TResult, args?: TArgs | undefined, thisArg?: TThis | undefined): TResult;
|
14 | };
|
15 | export declare function forgetCache(cache: ApolloCache<any>): void;
|
16 | export declare function recallCache(cache: ApolloCache<any>): void;
|
17 | export declare function makeVar<T>(value: T): ReactiveVar<T>;
|
18 | //# sourceMappingURL=reactiveVars.d.ts.map |
\ | No newline at end of file |