import { ProviderRpcClient } from "everscale-inpage-provider"; import type { ConnectionData, Ed25519KeyPair } from "everscale-standalone-client"; import { ConnectionProperties } from "everscale-standalone-client"; import { Giver } from "../factory"; import Joi from "joi"; import { MessageProperties } from "everscale-standalone-client"; export declare enum ConfigState { EXTERNAL = 0, INTERNAL = 1 } export declare const LOCKLIFT_NETWORK_NAME = "locklift"; type LockliftNetworkName = typeof LOCKLIFT_NETWORK_NAME; export interface LockliftConfig { compiler: { includesPath?: string; externalContracts?: ExternalContracts; externalContractsArtifacts?: ExternalContracts; compilerParams?: Array; } & ({ path: string; } | { version: string; }); linker?: { path: string; lib: string; } | { version: string; }; networks: Networks; mocha: Mocha.MochaOptions & { tsconfig?: string; }; } export type KeysConfig = { path?: string; phrase?: string; amount: number; }; export type ForkContractsConfig = Array<{ abi: { path: string; }; } & ({ codeHash: string | { deriveAddress: string; }; } | { address: string; })>; export type ForkSource = { type: "live"; connection: ConnectionProperties; } | { type: "block"; block: number; }; export type Networks = Record<"local" | string, NetworkValue> & { [key in LockliftNetworkName]: NetworkValue; }; export interface NetworkValue { giver: T extends ConfigState.EXTERNAL ? P extends LockliftNetworkName ? GiverConfig | undefined : GiverConfig : GiverConfig; keys: T extends ConfigState.EXTERNAL ? KeysConfig : Required; connection: T extends ConfigState.EXTERNAL ? ConnectionProperties : ConnectionData; fork?: { source: ForkSource; contracts: ForkContractsConfig; }; blockchainConfig?: "EVER" | "TON" | { custom: string; } | undefined; clientConfig?: { message?: MessageProperties; initInput?: any | Promise; }; } export type ExternalContracts = Record>; export type GiverConfig = { address: string; giverFactory?: (ever: ProviderRpcClient, keyPair: Ed25519KeyPair, address: string) => Giver; } & ({ key: string; } | { phrase: string; accountId: number; } | { phrase: string; path: string; }); export declare const JoiConfig: Joi.ObjectSchema>; export declare function loadConfig(configPath: string): LockliftConfig; export {};