/**
 * 钱包列表查询参数接口
 */
export interface IWalletListParmsProps {
    tag?: string;
    sales_status?: 1 | 0 | -1;
    machine_search?: string;
    createdDate?: string;
    limit_status?: string;
    relation_id?: string;
    relation_type?: string;
    customer_id?: number;
    sort?: 'desc' | 'asc';
    order_by?: string;
    used_status?: string;
    num?: number;
    skip?: number;
}
/**
 * 钱包列表项属性接口
 */
export interface IWalletListItemProps {
    id?: number | string;
    encoded?: string;
    code?: string;
    limit_status?: string;
    customer_id?: number;
    generate_method?: 'not_settable' | 'before_order' | 'after_order';
    created_at?: string;
    product_id?: number;
    sales_status?: 1 | 0;
    tag?: string;
    status?: string;
    redeemed_at?: string;
    collection_time?: string;
    order_id?: number;
    par_value?: string;
    write_status?: number;
    expire_date?: string;
    balance?: string;
    extension_id?: string;
    product_title?: string;
    product_cover?: string;
    product?: IProductProps;
    unified_available_status?: IUnifiedAvailableStatus;
    shop: IShop;
    unified_messages: any;
    machinecode_config?: {
        hide_recharge?: number;
    };
}
/**
 * 商店信息接口
 */
export interface IShop {
    name: string;
    id: number;
}
/**
 * 统一可用状态接口
 */
export interface IUnifiedAvailableStatus {
    title?: string;
    desc?: string;
    alert?: string;
}
/**
 * 商品属性接口
 */
export interface IProductProps {
    id?: number;
    title?: string;
    description?: string;
}
/**
 * API响应接口
 */
export interface ApiResponse<T> {
    data: T;
    code?: number;
    message?: string;
}
/**
 * 错误处理函数类型
 */
export declare type ErrorCallback = () => void;
/**
 * 获取钱包列表
 * @param params 查询参数
 * @returns Promise<{list: IWalletListItemProps[], count: number}> 钱包列表和总数
 * @throws 请求失败时抛出错误
 */
export declare const getWalletList: (params?: IWalletListParmsProps) => Promise<{
    list: IWalletListItemProps[];
    count: number;
}>;
/**
 * 通过code绑定客户
 * @param params 请求参数，包含code
 * @param errCallback 错误回调
 * @returns Promise<any> 绑定结果
 */
export declare const customer: (params: {
    code: string;
}, errCallback: ErrorCallback) => Promise<any>;
/**
 * 用户根据code查询待绑定识别码列表
 * @param params 请求参数，包含code和tag
 * @param errCallback 错误回调函数
 * @returns Promise<IWalletListItemProps[] | null> 未绑定的钱包卡列表
 */
export declare const unbindList: (params: {
    code: string;
    tag: string;
}, errCallback: ErrorCallback) => Promise<IWalletListItemProps[] | null>;
/**
 * 下单请求参数接口
 */
export interface IOrderParams {
    voucher_id: string;
    product_id: string;
    product_variant_id: string;
    quantity: number;
    type: string;
    platform: string;
    currency_code: {
        currency_code: string;
        currency_symbol: string;
        currency_format: string;
    };
}
/**
 * 下单
 * @param params 下单参数
 * @returns Promise<any> 下单结果
 * @throws 请求失败时抛出错误
 */
export declare const goOrder: (params: IOrderParams) => Promise<any>;
/**
 * 设置请求对象
 * @param req 请求对象
 */
export declare const setRequest: (req: any) => void;
