/**
 * Copyright 2023 Kapeta Inc.
 * SPDX-License-Identifier: MIT
 */
import * as UAParser from 'ua-parser-js';
interface UseUserAgentReturn {
    ua: string;
    os: UAParser.IOS;
    browser: UAParser.IBrowser;
    cpu: UAParser.ICPU;
    device: UAParser.IDevice;
    engine: UAParser.IEngine;
}
/**
 * Generates a user agent object based on the provided user agent string or the user agent string of
 * the current window.
 *
 * @param {string} uastring - The user agent string to parse. If not provided, the user agent string
 * of the current window will be used.
 * @return {UseUserAgentReturn | null} The user agent object containing information about the user
 * agent, or null if an error occurred during parsing.
 */
export declare const useUserAgent: (uastring?: string) => UseUserAgentReturn | null;
export {};
