import { BehaviorSubject } from 'rxjs'; import { TemplateRef } from '@angular/core'; export declare class Country { _id?: string; capital?: string; cities?: null | []; codeAlpha2?: string; codeAlpha3: string; codeNumeric?: string; continent?: string; currencies?: null; fullName?: string; languages?: null | []; name: string; nameCN?: string; shortName?: string; } export interface ICountryQueryParams { size: number; page: number; keyword?: string; } export declare class Currency { _id?: string; code: string; decimal: number; name: string; number: string; sign: string; country?: string; countryCodeAlpha2?: string; countryCodeAlpha3?: string; } export interface ICurrencyQueryParams { limit: number; keyword?: string; } export interface IDetailHeaderTab { text: string; url: string; key?: string; } export interface INewSelectOption { localName: string; label: string; value: string; } export interface IExchangeRateQueryParams { dstCurrency: string; srcCurrency: string; } export declare enum FormItemType { SELECT = "select", CURRENCY_SELECT = "currency_select", SWITCH = "switch", FILE = "file", TEMPLATE = "template", INPUTGROUP = "inputGroup", RADIO = "radio" } export interface IFormItem { label: string; errTip?: string; errTips?: { [key: string]: string; }; formControlName: string; inputType?: string; type?: FormItemType; multiple?: 'multiple' | 'tags' | 'default'; allowClear?: boolean; options?: IOption[]; hide?: boolean; asyncHidden?: BehaviorSubject; disable?: boolean; addAfter?: string; asyncSpan?: BehaviorSubject; compareFn?: (c1: any, c2: any) => boolean; change?: (event: any) => void; template?: TemplateRef; currencyType?: 'string' | 'object'; } export interface IFormOption { label: string; errTip: string; formControlName: string; type?: FormItemType; multiple?: boolean; options?: any[]; } export interface IOption { label: string; value: string | number; } export interface ICurrencyOption { label: string; value: Currency; } export declare enum ChanCodeValue { WXP = "WXP", ALP = "ALP", UPI = "UPI" } export declare enum ChanCodeLabel { ALP = "Alipay", WXP = "WeChat", UPI = "UPI" } export declare enum CardChanCodeLabel { VIS = "Visa", MCC = "MasterCard", AME = "American Express" } export declare enum CardChanCodeValue { VIS = "VIS", MCC = "MCC", AME = "AME" } export interface IExchangeRate { buyRate: number; createTime: string; dstCurrency: string; id: string; isCalculate: boolean; isNew: boolean; markup: number; rateSponsor: string; relateRates: string[]; selRate: number; srcCurrency: string; updateTime: string; } export declare enum EDateLimitEnum { Year = "year", Month = "month" } export declare const BizAreaOptions: { label: string; value: string; }[]; export declare const StatusTextMap: { init: string; normal: string; freeze: string; }; export declare const SchemeStatusTextMap: { '': string; 0: string; 1: string; }; export declare const RuleTypeTextMap: { 1: string; 2: string; }; export declare const RiskTypeMap: { normal: string; special: string; }; export declare const UserTypeTextMap: { admin: string; genAdmin: string; institution: string; agent: string; merchant: string; store: string; }; export declare const LevelMap: { institution: string; agent: string; merchant: string; store: string; }; /** 后端成功信息 */ export declare enum SuccessCode { SUCCESS_AUDITING = "MSG_CODE.SYSTEM.SUCCESS_AUDITING", SUCCESS = "MSG_CODE.SYSTEM.SUCCESS" } /** 后端报错信息 */ export declare enum ErrorCode { ALREADY_IN_AUDIT = "MSG_CODE.PERMISSION.ALREADY_IN_AUDIT" } /** 分页 */ export interface IPagination { count: number; page: number; size: number; total: number; } export interface IGenericPagination extends IPagination { data: T[]; } export interface ICursorPagination { paging: ICursorPaging; } export interface ICursorPaging { cursors: ICursor; previous: string; next: string; } export interface ICursor { before: string; after: string; } /** 查询条件 */ export interface IQueryParams { page: number; size: number; total?: number; } /** 返回接口 */ export interface IResponse { status: number; message: string; data: any; } export interface IGeneralResponse { code: string; msg: string; } export interface IRoleResponse { agentRoles: any; insRoles: any; merchantRoles: any; storeRoles: any; } export interface IReportResponse { url: string; } /** 更新 */ export declare class UpdateReq { version: number; }