import * as T from "../types"; /** * The main purpose of this module. It is a helper function which accepts an object * describing instances in shorthand, as well as a second object describing the additional * more general config fields. It is usually the case that the first object will be vary * between players, and the second field will be the same between different players. */ export declare const gen: (instances: T.Fort<{ id: string; agent: { id: string; name: string; keystore_file: string; public_address: string; } & { test_agent?: boolean | undefined; }; dna: { id: string; file: string; } & { hash?: string | undefined; uuid?: string | undefined; }; }[] | { [x: string]: { id: string; file: string; } & { hash?: string | undefined; uuid?: string | undefined; }; }>, common?: { bridges?: { handle: string; caller_id: string; callee_id: string; }[] | undefined; dpki?: { instance_id: string; init_params: string; } | undefined; network?: { [x: string]: any; } | undefined; logger?: { [x: string]: any; } | undefined; } | ((ConfigSeedArgs: any) => { bridges?: { handle: string; caller_id: string; callee_id: string; }[] | undefined; dpki?: { instance_id: string; init_params: string; } | undefined; network?: { [x: string]: any; } | undefined; logger?: { [x: string]: any; } | undefined; }) | undefined) => (args: T.ConfigSeedArgs) => Promise; /** * 1. If a dna config object contains a URL in the path, download the file to a temp directory, * and rewrite the path to point to downloaded file. * 2. Then, if the hash is not set, calculate the hash and set it. * 3. Add the UUID for this scenario */ export declare const resolveDna: (inputDna: { id: string; file: string; } & { hash?: string | undefined; uuid?: string | undefined; }, providedUuid: string) => Promise<{ id: string; file: string; } & { hash?: string | undefined; uuid?: string | undefined; }>; export declare const getConfigPath: (configDir: any) => any; export declare const desugarInstances: (instances: { [x: string]: { id: string; file: string; } & { hash?: string | undefined; uuid?: string | undefined; }; }, args: T.ConfigSeedArgs) => { id: string; agent: { id: string; name: string; keystore_file: string; public_address: string; } & { test_agent?: boolean | undefined; }; dna: { id: string; file: string; } & { hash?: string | undefined; uuid?: string | undefined; }; }[]; export declare const makeTestAgent: (id: any, { playerName, uuid }: { playerName: any; uuid: any; }) => { name: string; id: any; keystore_file: string; public_address: string; test_agent: boolean; }; export declare const genPartialConfigFromDryInstances: (instances: { id: string; agent: { id: string; name: string; keystore_file: string; public_address: string; } & { test_agent?: boolean | undefined; }; dna: { id: string; file: string; } & { hash?: string | undefined; uuid?: string | undefined; }; }[], args: T.ConfigSeedArgs) => Promise; export declare const getDnaHash: (dnaPath: any) => Promise; export declare const assertUniqueTestAgentNames: (configs: T.RawConductorConfig[]) => void;