import type { HardhatConfig } from "hardhat/types"; import type { HardhatNetworkConfig, HardhatNetworkUserConfig } from "hardhat/types/config"; import type { CommandArguments, SplitCommands } from "./types"; export declare const PARITYPR_DOCKER_REGISTRY = "https://registry.hub.docker.com/v2/repositories/paritypr/"; export declare function constructCommandArgs(args?: CommandArguments): SplitCommands; export declare function isPortAvailable(port: number): Promise; export declare function getAvailablePort(startPort: number, maxAttempts: number): Promise; export declare function adjustTaskArgsForPort(taskArgs: string[], currentPort: number): string[]; export declare function getNetworkConfig(url: string): { accounts: "remote"; gas: "auto"; gasPrice: "auto"; gasMultiplier: number; httpHeaders: {}; timeout: number; url: string; }; export declare function configureNetwork(config: HardhatConfig, network: any, port: number): Promise; export declare function startServer(commands: CommandArguments, nodePath?: string, adapterPath?: string): Promise<{ commandArgs: SplitCommands; server: import("./types").RpcServer; port: number; }>; /** * This function retrieves a list of the latest images available in the Docker registry * sortes them from newest to oldest, and returns the newest one, in order to be used by the DockerServer. */ export declare function getLatestImageName(containerName: string): Promise; export declare function getDockerSocketPath(docker?: HardhatNetworkUserConfig["docker"]): Extract; export declare function waitForServiceToBeReady(port: number, payload: object, maxAttempts: number): Promise; export declare function getPolkadotRpcUrl(ethRpcUrl: HardhatNetworkConfig["url"], polkadotRpcUrl: HardhatNetworkConfig["polkadotUrl"], useAnvil?: boolean): string;