import { ApolloLink, NextLink, Operation } from '@apollo/client'; import { Func } from 'tn-typescript'; import { ExoTime } from '../../accessories/ExoTime.js'; export type Refresh = (props: RProps) => void; type RProps = { onSuccess?: Func; onError?: Func; onFinally?: Func; }; export declare class ExoApolloTokenRefresh extends ApolloLink { private $safetime; private $fetching; private $onRefresh; private $getAccessToken; private $refresh; private queue; safetime(time: ExoTime): this; getAccessToken(func: () => string): this; onRefresh(func?: Func): this; refresh(func: Refresh): this; request(operation: Operation, forward: NextLink): import("zen-observable-ts").Observable, Record, Record>>; private isExpired; } export {};