import { WeavyClient } from './weavy';
import { RealtimeDataType, RealtimeEventType } from '../types/realtime.types';
import { HubConnection } from '../../@microsoft/signalr/dist/browser/signalr.min.js';
import { Constructor } from '../types/generic.types';
export interface WeavyConnectionProps {
    whenConnectionRequested: () => Promise<void>;
    whenConnectionStarted: () => Promise<void>;
    createConnection: () => Promise<void>;
    disconnect: () => Promise<void>;
    connect: () => Promise<void>;
    subscribe: <T extends RealtimeEventType | RealtimeDataType>(group: string | null, event: string, callback: (realTimeEvent: T) => void) => Promise<void>;
    unsubscribe: <T extends RealtimeEventType | RealtimeDataType>(group: string | null, event: string, callback: (realTimeEvent: T) => void) => Promise<void>;
}
export declare const WeavyConnectionMixin: <TBase extends Constructor<WeavyClient>>(Base: TBase) => {
    new (...args: any[]): {
        _resolveConnectionRequested?: (value: unknown) => void;
        _whenConnectionRequested: Promise<unknown>;
        whenConnectionRequested(): Promise<void>;
        _connection?: HubConnection;
        _connectionEventListeners: Array<{
            name: string;
            callback: (realtimeEvent: never) => void;
        }>;
        signalRAccessTokenRefresh: boolean;
        _whenConnectionStartedResolve?: (value: unknown) => void;
        _whenConnectionStartedReject?: (reason: unknown) => void;
        _whenConnectionStarted: Promise<unknown>;
        readonly rtmConnection: HubConnection | undefined;
        whenConnectionStarted(): Promise<void>;
        createConnection(this: any & WeavyClient & import('./network').WeavyNetworkProps & import('./authentication').WeavyAuthenticationProps & import('./localization').WeavyLocalizationProps & WeavyConnectionProps & import('./query').WeavyQueryProps & import('./version').WeavyVersionProps & import('./fetch').WeavyFetchProps & import('./styles').WeavyStylesProps & import('./realtime').WeavyRealtimeProps & import('./api').WeavyApiProps): Promise<void>;
        disconnect(this: any & WeavyClient & import('./network').WeavyNetworkProps & import('./authentication').WeavyAuthenticationProps & import('./localization').WeavyLocalizationProps & WeavyConnectionProps & import('./query').WeavyQueryProps & import('./version').WeavyVersionProps & import('./fetch').WeavyFetchProps & import('./styles').WeavyStylesProps & import('./realtime').WeavyRealtimeProps & import('./api').WeavyApiProps): Promise<void>;
        connect(this: any & WeavyClient & import('./network').WeavyNetworkProps & import('./authentication').WeavyAuthenticationProps & import('./localization').WeavyLocalizationProps & WeavyConnectionProps & import('./query').WeavyQueryProps & import('./version').WeavyVersionProps & import('./fetch').WeavyFetchProps & import('./styles').WeavyStylesProps & import('./realtime').WeavyRealtimeProps & import('./api').WeavyApiProps): Promise<void>;
        subscribe<T extends RealtimeEventType | RealtimeDataType>(group: string | null, event: string, callback: (realtimeEvent: T) => void): Promise<void>;
        unsubscribe<T extends RealtimeEventType | RealtimeDataType>(group: string | null, event: string, callback: (realTimeEvent: T) => void): Promise<void>;
        destroy(this: any & WeavyClient & import('./network').WeavyNetworkProps & import('./authentication').WeavyAuthenticationProps & import('./localization').WeavyLocalizationProps & WeavyConnectionProps & import('./query').WeavyQueryProps & import('./version').WeavyVersionProps & import('./fetch').WeavyFetchProps & import('./styles').WeavyStylesProps & import('./realtime').WeavyRealtimeProps & import('./api').WeavyApiProps): void;
        readonly weavySid: string;
        readonly weavyId: string;
        readonly host: HTMLElement;
        "__#12@#hostContextProvider"?: import('../utils/context-provider').WyContextProvider<typeof import('..').WeavyContext>;
        cloudFilePickerUrl: string | URL | undefined;
        confluenceAuthenticationUrl: string | URL | undefined;
        confluenceProductName: string | undefined;
        disableEnvironmentImports: boolean | undefined;
        gcTime: number | undefined;
        reactions: string[] | undefined;
        scrollBehavior: "smooth" | "instant" | "auto" | undefined;
        staleTime: number | undefined;
        tokenFactoryRetryDelay: number | undefined;
        tokenFactoryTimeout: number | undefined;
        "__#12@#resolveUrl"?: (url: URL) => void;
        "__#12@#whenUrl": Promise<unknown>;
        whenUrl(): Promise<void>;
        "__#12@#url"?: URL;
        url: string | URL | undefined;
        "__#12@#isDestroyed": boolean;
        readonly isDestroyed: boolean;
    };
} & TBase;
//# sourceMappingURL=connection.d.ts.map