import React from 'react';
import { PayStatus } from './const';
import { ModeEnum, ClientEnum } from './const';
export declare const useStoreRef: <T extends {
    [key: string]: unknown;
} = {
    [key: string]: unknown;
}, U extends {
    [key: string]: unknown;
} = {
    [key: string]: unknown;
}>() => {
    readonly deviceRef: React.MutableRefObject<T>;
    readonly payRef: React.MutableRefObject<U>;
    readonly numRef: React.MutableRefObject<string | number | undefined>;
    readonly orderIdRef: React.MutableRefObject<string | number>;
    readonly modeRef: React.MutableRefObject<ModeEnum>;
    readonly statusRef: React.MutableRefObject<"success" | "fail" | "reject" | "loading" | "warn" | "init" | "pedding" | "resove" | "question">;
    readonly netRef: React.MutableRefObject<boolean | undefined>;
    readonly symbolRef: React.MutableRefObject<string>;
    readonly amountRef: React.MutableRefObject<string | number>;
    readonly eftposRef: React.MutableRefObject<"mx51" | "payo" | "tyro" | "windcave" | "stripe" | "linkly" | "huifu">;
    readonly clientRef: React.MutableRefObject<ClientEnum>;
    readonly dataRef: React.MutableRefObject<import("./store").State>;
};
/**
 * @title: 通用失败处理
 * @description:  固定步骤 错误处理逻辑
 * @return null
 * @Author: hongbing.wang
 * @Date: 2024-08-12 11:54
 */
export declare const useFail: (index: number) => (res: {
    code?: `${PayStatus}`;
    message?: string;
}, isMark?: boolean) => void;
