import { RpcTransport } from "@solana/rpc-spec";
/**
 * This is the type we pass to define a Solana RPC request "task".
 */
export interface SolanaRateLimitTask {
    rpcArgs: Parameters<RpcTransport>;
    resolve: (result: unknown) => void;
    reject: (err: unknown) => void;
}
/**
 * Determine whether a Solana RPC error indicates an unrecoverable error that should not be retried.
 * @param method RPC method name.
 * @param error Error object from the RPC call.
 * @returns True if the request should be aborted immediately, otherwise false.
 */
export declare function shouldFailImmediate(method: string, error: unknown): boolean;
