/** panda-disable */
export interface Pattern {
    /**
     * 判断开户行的正则，由开头的数字决定
     */
    reg: RegExp;
    /**
     * 开卡类型，DC，CC, PC, SCC
     */
    cardType?: string;
    /**
     * 卡片长度
     */
    length?: number | number[];
}
export interface CardType {
    /**
     * 银行名称
     */
    bankName: string;
    /**
     * 银行代码，对应的Code
     */
    bankCode: string;
    /**
     * 正则
     */
    patterns?: Pattern[];
}
export declare const DEFAULT_CARD_FORMAT: RegExp;
/** 内置的卡片配置，18 + 1 = 19种 */
export declare const CARD_MAP: Record<string, CardType>;
export declare const memorize: (fn: any) => (...args: any[]) => any;
export declare const getCardTypeByValueRaw: (value: string, cardTypes?: CardType[]) => {
    format: RegExp;
    /**
     * 银行名称
     */
    bankName: string;
    /**
     * 银行代码，对应的Code
     */
    bankCode: string;
    /**
     * 正则
     */
    patterns?: Pattern[];
};
export declare const getCardTypeByTypeRaw: (type: string) => CardType;
export declare const getCardTypeByValue: (...args: any[]) => any;
export declare const getCardTypeByType: (...args: any[]) => any;
