import { ReactNode } from 'react'; declare namespace Insight { /** * 用户洞察参数 */ interface Params { param?: ParamsProp; onBack?: () => void; extra?: ReactNode; onTabChange?: (name: string) => void; /** * 是否使用简化api,为true时,将不再有先获取uids再获取用户详情列表的逻辑,而是整合成一个接口 */ simpleApi?: boolean; simpleApiParams?: ParamsProp; module?: ModuleName[]; /** * @description 是否展示保存用户群按钮 * @default true */ showSaveGroupBtn?: boolean; /** * 保存用户群分析回调 */ afterUserGroupSave?: () => void; /** * 用户群页面定制类型 */ customType?: CustomType; } /** * 模型传进的参数 */ interface ParamsProp { /** * @description 应用id */ appId?: number; /** * @description 平台 */ platform?: number; /** * @description 用户数量 */ count?: number; /** * @description 模型类型 整体|事件|漏斗|留存|获取|粘性|崩溃|微信生态-整体|微信生态-小程序|路径 */ source: string; /** * @description 查询接口 */ url: string; /** * @description 查询对象 */ params?: Record; } type ModuleName = 'userList' | 'userPortrait'; /** * general --- 通用 credit --- 信贷场景定制 */ type CustomType = 'general' | 'credit'; } export default Insight;