import { Observable } from "@apollo/client";
import { ApolloLink } from "@apollo/client/link";
import { Realtime, Types } from "ably";
type RequestResult = ApolloLink.Result<Record<string, any>, Record<string, any>>;
declare class AblyLink extends ApolloLink {
    ably: Realtime;
    constructor(options: {
        ably: Realtime;
    });
    request(operation: ApolloLink.Operation, forward: ApolloLink.ForwardFunction): Observable<RequestResult>;
    _getSubscriptionChannel(operation: ApolloLink.Operation): {
        channel: any;
        key: any;
    };
    _createSubscription(subscriptionChannelConfig: {
        channel: string;
        key: string;
    }, observer: {
        next: Function;
        complete: Function;
    }): Types.RealtimeChannelCallbacks;
}
export default AblyLink;
