import ctp from "napi-ctp";
import { ErrorType, ILifecycleListener } from "./interfaces.js";
export declare class CTPProvider {
    protected readonly flowPath: string;
    protected readonly frontAddrs: string | string[];
    constructor(flowPath: string, frontAddrs: string | string[]);
    private _sleep;
    protected _withRetry(request: () => number | undefined, ms?: number): Promise<number | undefined>;
    protected _isErrorResp(lifecycle: ILifecycleListener, options: ctp.CallbackOptions, error: ErrorType): boolean;
    protected _parseTime(time: string): number;
}
