/**
 * Relay connection management
 * @module Relay
 * @group Database
 */
/**
 * Peer server status reactive object
 * @example
 * {
 * "peer": "https://peer.era.eco/gun",
 * "host": "6db1edbb5aae",
 * "status": "running",
 * "started": 1642666725795,
 * "pulse": 1642677007483,
 * "lag": 8,
 * "diff": 10281688,
 * "age": "3h",
 * "delay": 22,
 * "blink": true
 * }
 */
export interface Relay {
    peer: string;
    host: string;
    status: string;
    pulse: number;
    lag: number;
    started: number;
    diff: number;
    age: string;
    blink: boolean;
}
export declare const relay: Relay;
export declare function setPeer(url: string): void;
export declare function resetPeer(): void;
/**
 * Peer server status monitor
 * @returns {useRelay}
 *
 * @example
 * import { useRelay } from '@gun-vue/composables';
 *
 * const { relay, setPeer, resetPeer } = useRelay()
 */
export declare function useRelay(): {
    relay: Relay;
    setPeer: (url: string) => void;
    resetPeer: () => void;
};
//# sourceMappingURL=useRelay.d.ts.map