import type { GraphQLRequest, OperationContext } from "@apollo/client/link";
import { ApolloLink } from "@apollo/client/link";
export type ContextSetter = (operation: GraphQLRequest, prevContext: OperationContext) => Promise<Partial<OperationContext>> | Partial<OperationContext>;
/**
 * @deprecated
 * Use `SetContextLink` from `@apollo/client/link/context` instead.
 */
export declare function setContext(setter: ContextSetter): SetContextLink;
export declare class SetContextLink extends ApolloLink {
    constructor(setter: ContextSetter);
}
//# sourceMappingURL=index.d.ts.map
