export interface UserApiResponse { data: UserData; ret_code: number; } export interface IAM_STATEMENTS { action: string[]; effect: string; } export interface UserData { zone: string; console: string; currency: string; email: string; features_whitelist: Record; gravatar_email: string; gravatar_url: string; iam_token: null; iamrole_user: null; iamrole_userid: null; iamuser_name: null; is_admin: 0 | 1; is_dev: 0 | 1; lang: string; notify_email: string; paid_mode: string; phone: string; preference: number; privilege: number; region_info: Record; regions: string[]; role: string; role_id: null; role_name: null; root_user_id: string; sale_type: string; security_setting: Record; sk: string; storeData: null; total_sub_user_count: 0; user_id: string; user_name: string; user_preference: null; user_type: 0 | 1; verify_status: string; verify_type: string; zones: string[]; zones_info: Record & { is_abroad?: boolean; }>; binded_iam_statements: IAM_STATEMENTS[]; vdc_info?: { status?: string; }; } /** * 请求用户数据 * @see {@link fetchUserApi} */ export declare const fetchUserApi: () => Promise; /** * @deprecated 请使用 window.user * @returns */ export declare const useUserApi: () => { data: UserData | undefined; };