import { WyContextProvider as ContextProvider } from '../utils/context-provider';
import { WeavyContext } from '../contexts/weavy-context';
import { WeavyOptions, Destructable, WeavyClientOptionsType } from '../types/weavy.types';
import { WeavyLocalizationProps } from './localization';
import { WeavyNetworkProps } from './network';
import { WeavyAuthenticationProps } from './authentication';
import { WeavyConnectionProps } from './connection';
import { WeavyQueryProps } from './query';
import { WeavyVersionProps } from './version';
import { WeavyFetchProps } from './fetch';
import { WeavyStylesProps } from './styles';
import { WeavyRealtimeProps, WyNotificationsEventType } from './realtime';
import { WeavyApiProps, AppType } from './api';
export type { WeavyOptions, Destructable, WeavyClientOptionsType };
export type WeavyType = WeavyClient & WeavyNetworkProps & WeavyAuthenticationProps & WeavyLocalizationProps & WeavyConnectionProps & WeavyQueryProps & WeavyVersionProps & WeavyFetchProps & WeavyStylesProps & WeavyRealtimeProps & WeavyApiProps;
/**
 * Context for Weavy that handles communication with the server, data handling and common options.
 * Requires a `url` to the Weavy environment and an async `tokenFactory` that provides user access tokens.
 */
export declare class WeavyClient implements WeavyOptions, Destructable {
    #private;
    /**
     * The semver version of the package.
     */
    static readonly version: string;
    /**
     * The Weavy source name; package name.
     */
    static readonly sourceName: string;
    static defaults: WeavyOptions;
    readonly weavySid: string;
    readonly weavyId: string;
    /**
     * The host where the Weavy context is provided.
     */
    readonly host: HTMLElement;
    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;
    whenUrl(): Promise<void>;
    /**
     * The URL to the weavy environment.
     */
    get url(): string | URL | undefined;
    set url(url: string | URL | undefined);
    constructor(options?: WeavyClientOptionsType);
    get isDestroyed(): boolean;
    destroy(): void;
}
declare const Weavy_base: {
    new (...args: any[]): {
        api: {
            apps: {
                getApp<TApp extends AppType>(uid: string): Promise<TApp>;
            };
        };
        readonly weavySid: string;
        readonly weavyId: string;
        /**
         * The host where the Weavy context is provided.
         */
        readonly host: HTMLElement;
        "__#12@#hostContextProvider"?: ContextProvider<typeof 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;
        /**
         * The URL to the weavy environment.
         */
        url: string | URL | undefined;
        "__#12@#isDestroyed": boolean;
        readonly isDestroyed: boolean;
        destroy(): void;
    };
} & {
    new (...args: any[]): {
        _notificationEvents: boolean;
        notificationEvents: boolean;
        dispatchRealtimeEvent: (realtimeEvent: import('../types/realtime.types').RealtimeEventType) => void;
        realtimeSubscribe(): Promise<void>;
        realtimeUnsubscribe(): void;
        destroy(this: any & WeavyClient & WeavyNetworkProps & WeavyAuthenticationProps & WeavyLocalizationProps & WeavyConnectionProps & WeavyQueryProps & WeavyVersionProps & WeavyFetchProps & WeavyStylesProps & WeavyRealtimeProps & WeavyApiProps): void;
        readonly weavySid: string;
        readonly weavyId: string;
        /**
         * The host where the Weavy context is provided.
         */
        readonly host: HTMLElement;
        "__#12@#hostContextProvider"?: ContextProvider<typeof 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;
        /**
         * The URL to the weavy environment.
         */
        url: string | URL | undefined;
        "__#12@#isDestroyed": boolean;
        readonly isDestroyed: boolean;
    };
} & {
    new (...args: any[]): {
        _locales: Map<string, import('@lit/localize').LocaleModule | Promise<import('@lit/localize').LocaleModule> | (() => Promise<import('@lit/localize').LocaleModule>)>;
        locales: [string, import('@lit/localize').LocaleModule | Promise<import('@lit/localize').LocaleModule> | (() => Promise<import('@lit/localize').LocaleModule>)][];
        _locale: string;
        localization?: ReturnType<typeof import('@lit/localize').configureLocalization>;
        locale: string;
        loadLocale(newLocale: string): Promise<import('@lit/localize').LocaleModule>;
        configureLocalization(): void;
        readonly weavySid: string;
        readonly weavyId: string;
        /**
         * The host where the Weavy context is provided.
         */
        readonly host: HTMLElement;
        "__#12@#hostContextProvider"?: ContextProvider<typeof 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;
        /**
         * The URL to the weavy environment.
         */
        url: string | URL | undefined;
        "__#12@#isDestroyed": boolean;
        readonly isDestroyed: boolean;
        destroy(): void;
    };
    readonly sourceLocale: "" | "en";
} & {
    new (...args: any[]): {
        _resolveConnectionRequested?: ((value: unknown) => void) | undefined;
        _whenConnectionRequested: Promise<unknown>;
        whenConnectionRequested(): Promise<void>;
        _connection?: import('../../@microsoft/signalr/dist/browser/signalr.min.js').HubConnection;
        _connectionEventListeners: {
            name: string;
            callback: (realtimeEvent: never) => void;
        }[];
        signalRAccessTokenRefresh: boolean;
        _whenConnectionStartedResolve?: ((value: unknown) => void) | undefined;
        _whenConnectionStartedReject?: ((reason: unknown) => void) | undefined;
        _whenConnectionStarted: Promise<unknown>;
        readonly rtmConnection: import('../../@microsoft/signalr/dist/browser/signalr.min.js').HubConnection | undefined;
        whenConnectionStarted(): Promise<void>;
        createConnection(this: any & WeavyClient & WeavyNetworkProps & WeavyAuthenticationProps & WeavyLocalizationProps & WeavyConnectionProps & WeavyQueryProps & WeavyVersionProps & WeavyFetchProps & WeavyStylesProps & WeavyRealtimeProps & WeavyApiProps): Promise<void>;
        disconnect(this: any & WeavyClient & WeavyNetworkProps & WeavyAuthenticationProps & WeavyLocalizationProps & WeavyConnectionProps & WeavyQueryProps & WeavyVersionProps & WeavyFetchProps & WeavyStylesProps & WeavyRealtimeProps & WeavyApiProps): Promise<void>;
        connect(this: any & WeavyClient & WeavyNetworkProps & WeavyAuthenticationProps & WeavyLocalizationProps & WeavyConnectionProps & WeavyQueryProps & WeavyVersionProps & WeavyFetchProps & WeavyStylesProps & WeavyRealtimeProps & WeavyApiProps): Promise<void>;
        subscribe<T extends import('../types/realtime.types').RealtimeEventType | import('../types/realtime.types').RealtimeDataType>(group: string | null, event: string, callback: (realtimeEvent: T) => void): Promise<void>;
        unsubscribe<T extends import('../types/realtime.types').RealtimeEventType | import('../types/realtime.types').RealtimeDataType>(group: string | null, event: string, callback: (realTimeEvent: T) => void): Promise<void>;
        destroy(this: any & WeavyClient & WeavyNetworkProps & WeavyAuthenticationProps & WeavyLocalizationProps & WeavyConnectionProps & WeavyQueryProps & WeavyVersionProps & WeavyFetchProps & WeavyStylesProps & WeavyRealtimeProps & WeavyApiProps): void;
        readonly weavySid: string;
        readonly weavyId: string;
        /**
         * The host where the Weavy context is provided.
         */
        readonly host: HTMLElement;
        "__#12@#hostContextProvider"?: ContextProvider<typeof 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;
        /**
         * The URL to the weavy environment.
         */
        url: string | URL | undefined;
        "__#12@#isDestroyed": boolean;
        readonly isDestroyed: boolean;
    };
} & {
    new (...args: any[]): {
        _networkEvents: Set<(status: import('../types/server.types').NetworkStatus) => void>;
        _connectionState: import('../types/server.types').ConnectionState;
        _serverState: import('../types/server.types').ServerState;
        _networkState: import('../types/server.types').NetworkState;
        _networkStateIsPending: boolean;
        networkState: import('../types/server.types').NetworkState;
        serverState: import('../types/server.types').ServerState;
        connectionState: import('../types/server.types').ConnectionState;
        networkStateIsPending: boolean;
        readonly network: import('../types/server.types').NetworkStatus;
        triggerNetworkChange(): void;
        addNetworkListener(callback: (state: import('../types/server.types').NetworkStatus) => void): void;
        removeNetworkListener(callback: (state: import('../types/server.types').NetworkStatus) => void): void;
        readonly weavySid: string;
        readonly weavyId: string;
        /**
         * The host where the Weavy context is provided.
         */
        readonly host: HTMLElement;
        "__#12@#hostContextProvider"?: ContextProvider<typeof 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;
        /**
         * The URL to the weavy environment.
         */
        url: string | URL | undefined;
        "__#12@#isDestroyed": boolean;
        readonly isDestroyed: boolean;
        destroy(): void;
    };
} & {
    new (...args: any[]): {
        _resolveUrlAndTokenFactory?: ((value: unknown) => void) | undefined;
        _whenUrlAndTokenFactory: Promise<unknown>;
        whenUrlAndTokenFactory(): Promise<void>;
        _resolveTokenIsValid?: ((value: unknown) => void) | undefined;
        _whenTokenIsValid: Promise<unknown>;
        whenTokenIsValid(): Promise<void>;
        _tokenFactory?: import('../types/weavy.types').WeavyTokenFactory;
        tokenFactory: import('../types/weavy.types').WeavyTokenFactory | undefined;
        _tokenUrl?: URL;
        tokenUrl: string | URL | undefined;
        _tokenPromise: Promise<string> | null;
        _token: string;
        _validateToken(token: unknown): boolean;
        _validTokenFromFactory: import('../types/weavy.types').WeavyTokenFactory;
        getToken(refresh?: boolean): Promise<string>;
        readonly weavySid: string;
        readonly weavyId: string;
        /**
         * The host where the Weavy context is provided.
         */
        readonly host: HTMLElement;
        "__#12@#hostContextProvider"?: ContextProvider<typeof 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;
        /**
         * The URL to the weavy environment.
         */
        url: string | URL | undefined;
        "__#12@#isDestroyed": boolean;
        readonly isDestroyed: boolean;
        destroy(): void;
    };
} & {
    new (...args: any[]): {
        _hostIsConnectedObserver: ResizeObserver;
        _queryClient: import('@tanstack/query-core').QueryClient;
        _unsubscribeQueryClient?: (() => void) | undefined;
        _sessionStoragePersister?: import('@tanstack/query-persist-client-core').Persister;
        readonly queryClient: import('@tanstack/query-core').QueryClient;
        createQueryClient(): Promise<void>;
        disconnectQueryClient(): Promise<void>;
        destroy(): void;
        readonly weavySid: string;
        readonly weavyId: string;
        /**
         * The host where the Weavy context is provided.
         */
        readonly host: HTMLElement;
        "__#12@#hostContextProvider"?: ContextProvider<typeof 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;
        /**
         * The URL to the weavy environment.
         */
        url: string | URL | undefined;
        "__#12@#isDestroyed": boolean;
        readonly isDestroyed: boolean;
    };
} & {
    new (...args: any[]): {
        readonly version: string;
        checkVersion(this: any & WeavyClient & WeavyNetworkProps & WeavyAuthenticationProps & WeavyLocalizationProps & WeavyConnectionProps & WeavyQueryProps & WeavyVersionProps & WeavyFetchProps & WeavyStylesProps & WeavyRealtimeProps & WeavyApiProps, version?: string): Promise<void>;
        readonly weavySid: string;
        readonly weavyId: string;
        /**
         * The host where the Weavy context is provided.
         */
        readonly host: HTMLElement;
        "__#12@#hostContextProvider"?: ContextProvider<typeof 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;
        /**
         * The URL to the weavy environment.
         */
        url: string | URL | undefined;
        "__#12@#isDestroyed": boolean;
        readonly isDestroyed: boolean;
        destroy(): void;
    };
} & {
    new (...args: any[]): {
        fetchOptions(this: any & WeavyClient & WeavyNetworkProps & WeavyAuthenticationProps & WeavyLocalizationProps & WeavyConnectionProps & WeavyQueryProps & WeavyVersionProps & WeavyFetchProps & WeavyStylesProps & WeavyRealtimeProps & WeavyApiProps, options?: import('../types/http.types').FetchOptions, authorized?: boolean): Promise<RequestInit>;
        fetch(this: any & WeavyClient & WeavyNetworkProps & WeavyAuthenticationProps & WeavyLocalizationProps & WeavyConnectionProps & WeavyQueryProps & WeavyVersionProps & WeavyFetchProps & WeavyStylesProps & WeavyRealtimeProps & WeavyApiProps, url: string | URL, options?: import('../types/http.types').FetchOptions, retry?: boolean): Promise<Response>;
        upload(this: any & WeavyClient & WeavyNetworkProps & WeavyAuthenticationProps & WeavyLocalizationProps & WeavyConnectionProps & WeavyQueryProps & WeavyVersionProps & WeavyFetchProps & WeavyStylesProps & WeavyRealtimeProps & WeavyApiProps, url: string | URL, method: import('../types/http.types').HttpUploadMethodType, body: string | FormData, contentType?: import('../types/http.types').HeaderContentType, onProgress?: ((progress: number) => void) | undefined, retry?: boolean): Promise<Response>;
        get(this: any & WeavyClient & WeavyNetworkProps & WeavyAuthenticationProps & WeavyLocalizationProps & WeavyConnectionProps & WeavyQueryProps & WeavyVersionProps & WeavyFetchProps & WeavyStylesProps & WeavyRealtimeProps & WeavyApiProps, url: string | URL): Promise<Response>;
        post(this: any & WeavyClient & WeavyNetworkProps & WeavyAuthenticationProps & WeavyLocalizationProps & WeavyConnectionProps & WeavyQueryProps & WeavyVersionProps & WeavyFetchProps & WeavyStylesProps & WeavyRealtimeProps & WeavyApiProps, url: string | URL, method: import('../types/http.types').HttpMethodType, body?: BodyInit, contentType?: import('../types/http.types').HeaderContentType): Promise<Response>;
        readonly weavySid: string;
        readonly weavyId: string;
        /**
         * The host where the Weavy context is provided.
         */
        readonly host: HTMLElement;
        "__#12@#hostContextProvider"?: ContextProvider<typeof 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;
        /**
         * The URL to the weavy environment.
         */
        url: string | URL | undefined;
        "__#12@#isDestroyed": boolean;
        readonly isDestroyed: boolean;
        destroy(): void;
    };
} & {
    new (...args: any[]): {
        readonly weavySid: string;
        readonly weavyId: string;
        /**
         * The host where the Weavy context is provided.
         */
        readonly host: HTMLElement;
        "__#12@#hostContextProvider"?: ContextProvider<typeof 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;
        /**
         * The URL to the weavy environment.
         */
        url: string | URL | undefined;
        "__#12@#isDestroyed": boolean;
        readonly isDestroyed: boolean;
        destroy(): void;
    };
} & typeof WeavyClient;
export declare class Weavy extends Weavy_base implements WeavyType {
}
export type { WyNotificationsEventType, AppType };
//# sourceMappingURL=weavy.d.ts.map