export interface ClarityInitOptions {
    /**
     * 是否自动识别用户信息
     * @default true
     */
    autoIdentify?: boolean;
}
export interface ClarityIdentifyOptions {
    customId: string;
    customSessionId?: string;
    customPageId?: string;
    friendlyName?: string;
}
export interface ClarityConsentV2Options {
    ad_Storage: 'granted' | 'denied';
    analytics_Storage: 'granted' | 'denied';
}
declare global {
    interface Window {
        clarity: (...args: any[]) => void;
    }
}
/**
 * Microsoft Clarity 封装
 *
 * @example
 * ```ts
 * // 自动识别用户信息
 * Clarity.init('your-project-id');
 *
 * // 手动设置用户信息
 * Clarity.init('your-project-id', { autoIdentify: false });
 * Clarity.identify({ customId: 'user-id', friendlyName: 'User Name' });
 * ```
 */
export declare const Clarity: {
    /**
     * 初始化 Clarity
     * @param projectId 项目 ID
     * @param options 配置选项
     */
    init(projectId: string, options?: ClarityInitOptions): void;
    /**
     * 判断 Clarity 是否可用
     */
    isAvailable(): boolean;
    /**
     * 设置标签
     */
    setTag(key: string, value: string | string[]): void;
    /**
     * 识别用户
     */
    identify(options: ClarityIdentifyOptions): void;
    /**
     * 同意追踪
     */
    consent(consent?: boolean): void;
    /**
     * 同意追踪 V2
     */
    consentV2(options?: ClarityConsentV2Options): void;
    /**
     * 升级会话
     */
    upgrade(reason: string): void;
    /**
     * 发送自定义事件
     */
    event(eventName: string): void;
};
