import { LocationResult } from '../types';

declare global {
    interface Window {
        dd?: {
            getLocation: (options: {
                targetAccuracy?: string;
                cacheTimeout?: number;
                coordinate?: string;
                useCache?: boolean;
                withReGeocode?: boolean;
                type?: number;
                success?: (res: any) => void;
                fail?: (error: any) => void;
            }) => void;
        };
    }
}
export declare function getH5Location(): Promise<LocationResult>;
export declare function getDingTalkLocation(): Promise<LocationResult>;
export declare function getAmapAddress(lat: number, lng: number, key: string): Promise<string>;
export declare function detectPlatform(): 'dingtalk' | 'wechat' | 'alipay' | 'browser';
