Do not edit this file. It is a report generated by API Extractor.
import { ApolloLink } from '@apollo/client/link';
import { Observable } from 'rxjs';
// @public (undocumented)
export namespace RetryLink {
// (undocumented)
export type AttemptsFunction = (count: number, operation: ApolloLink.Operation, error: any) => boolean | Promise<boolean>;
// (undocumented)
export interface AttemptsOptions {
max?: number;
retryIf?: (error: any, operation: ApolloLink.Operation) => boolean | Promise<boolean>;
}
// (undocumented)
export type DelayFunction = (count: number, operation: ApolloLink.Operation, error: any) => number;
// (undocumented)
export interface DelayOptions {
initial?: number;
jitter?: boolean;
max?: number;
}
// (undocumented)
export interface Options {
attempts?: RetryLink.AttemptsOptions | RetryLink.AttemptsFunction;
delay?: RetryLink.DelayOptions | RetryLink.DelayFunction;
}
}
// @public (undocumented)
export class RetryLink extends ApolloLink {
constructor(options?: RetryLink.Options);
// (undocumented)
request(operation: ApolloLink.Operation, forward: ApolloLink.ForwardFunction): Observable<ApolloLink.Result>;
}
// (No @packageDocumentation comment for this package)