/** * AppSettings 相关逻辑封装 * https://site.bytedance.net/docs/428/3356/request_params/ */ import { SizeLimitConfig, TmgSdkInfo } from './source.type'; /** * 网络请求相关相关的 typings 声明 */ declare type BaseResponse = { data: T; message: string; }; declare type Dict = { [key: string]: T; }; export declare type SettingsResponse = BaseResponse<{ settings: { compile_config?: { limit: SizeLimitConfig; }; tt_tma_sdk_config?: TmgSdkInfo[]; }; settings_time: number; }>; export declare const SETTINGS_URL = "https://developer.toutiao.com/service/settings/v3/"; export declare const genDefault: (params: Dict) => { caller_name: string; channel: string; device_platform: string; device_id: any; device_id_str: any; version_code: any; user_id: any; }; /** * 获取小游戏 IDE AppSettings 配置 * https://cloud.bytedance.net/appSettings-v2/detail/product/608/config/list */ export declare const getIdeSettings: (params?: Dict) => Promise<{ settings: { compile_config?: { limit: SizeLimitConfig; }; tt_tma_sdk_config?: TmgSdkInfo[]; }; settings_time: number; }>; export {};