/**
 * pacem v0.51.10-faraday (https://js.pacem.it)
 * Copyright 2025 Pacem (https://pacem.it)
 * Licensed under Apache-2.0
 */
declare namespace Pacem.Components.Networking {
    class PacemHubListenerElement extends PacemItemElement {
        #private;
        /** The method that the listener should subscribe to. */
        method: string;
        /** Whether it is listening to a streaming hub (`true`), or not (`false`, default). */
        stream: boolean;
        /** Method arguments. */
        arguments: any[];
        private get _isConnected();
        private get _connection();
        private _receiveHandler;
        private _completeHandler;
        private _errorHandler;
        private _connectedHandler;
        /** Start listening, if not disabled. */
        start(): void;
        /** Stop listening. */
        stop(): void;
        private _stop;
        private _start;
        viewActivatedCallback(): void;
        disconnectedCallback(): void;
        propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
    }
    type HubMethodCallback = (...args: any[]) => void;
    class PacemHubProxyElement extends PacemItemsContainerElement<PacemHubListenerElement> {
        validate(item: PacemHubListenerElement): boolean;
        url: string;
        accesstoken: string;
        connected: boolean;
        private _hub;
        get connection(): signalR.HubConnection;
        invoke(method: string, ...args: any[]): PromiseLike<any>;
        send(method: string, ...args: any[]): PromiseLike<void>;
        start(): Promise<void>;
        stop(): Promise<void>;
        propertyChangedCallback(name: string, old: any, val: any, first?: boolean): void;
        viewActivatedCallback(): void;
        disconnectedCallback(): void;
        private _resetProxy;
        private _initialize;
        private _setupProxy;
    }
}
