import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../common"; export declare namespace DAVINCITypes { type DKGParamsStruct = { mode: BigNumberish; epochId: BytesLike; orgPKx: BigNumberish; orgPKy: BigNumberish; popAx: BigNumberish; popAy: BigNumberish; popZ: BigNumberish; }; type DKGParamsStructOutput = [ mode: bigint, epochId: string, orgPKx: bigint, orgPKy: bigint, popAx: bigint, popAy: bigint, popZ: bigint ] & { mode: bigint; epochId: string; orgPKx: bigint; orgPKy: bigint; popAx: bigint; popAy: bigint; popZ: bigint; }; } export interface DavinciDKGAdapterInterface extends Interface { getFunction(nameOrSignature: "aidFor" | "appManager" | "manager" | "plaintexts" | "register" | "registrationEpoch" | "registry" | "reveal" | "submit"): FunctionFragment; encodeFunctionData(functionFragment: "aidFor", values: [BytesLike]): string; encodeFunctionData(functionFragment: "appManager", values?: undefined): string; encodeFunctionData(functionFragment: "manager", values?: undefined): string; encodeFunctionData(functionFragment: "plaintexts", values: [BytesLike, BytesLike, BigNumberish, BigNumberish]): string; encodeFunctionData(functionFragment: "register", values: [BytesLike, DAVINCITypes.DKGParamsStruct]): string; encodeFunctionData(functionFragment: "registrationEpoch", values?: undefined): string; encodeFunctionData(functionFragment: "registry", values?: undefined): string; encodeFunctionData(functionFragment: "reveal", values: [BytesLike, BytesLike, BigNumberish]): string; encodeFunctionData(functionFragment: "submit", values: [ BytesLike, BytesLike, [ BigNumberish, BigNumberish, BigNumberish, BigNumberish ][] ]): string; decodeFunctionResult(functionFragment: "aidFor", data: BytesLike): Result; decodeFunctionResult(functionFragment: "appManager", data: BytesLike): Result; decodeFunctionResult(functionFragment: "manager", data: BytesLike): Result; decodeFunctionResult(functionFragment: "plaintexts", data: BytesLike): Result; decodeFunctionResult(functionFragment: "register", data: BytesLike): Result; decodeFunctionResult(functionFragment: "registrationEpoch", data: BytesLike): Result; decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result; decodeFunctionResult(functionFragment: "reveal", data: BytesLike): Result; decodeFunctionResult(functionFragment: "submit", data: BytesLike): Result; } export interface DavinciDKGAdapter extends BaseContract { connect(runner?: ContractRunner | null): DavinciDKGAdapter; waitForDeployment(): Promise; interface: DavinciDKGAdapterInterface; queryFilter(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>>; queryFilter(filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>>; on(event: TCEvent, listener: TypedListener): Promise; on(filter: TypedDeferredTopicFilter, listener: TypedListener): Promise; once(event: TCEvent, listener: TypedListener): Promise; once(filter: TypedDeferredTopicFilter, listener: TypedListener): Promise; listeners(event: TCEvent): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners(event?: TCEvent): Promise; aidFor: TypedContractMethod<[processId: BytesLike], [string], "view">; appManager: TypedContractMethod<[], [string], "view">; manager: TypedContractMethod<[], [string], "view">; plaintexts: TypedContractMethod<[ eid: BytesLike, aid: BytesLike, first: BigNumberish, count: BigNumberish ], [ [boolean, bigint[]] & { ready: boolean; values: bigint[]; } ], "view">; register: TypedContractMethod<[ processId: BytesLike, dkg: DAVINCITypes.DKGParamsStruct ], [ [ string, string, bigint, bigint ] & { eid: string; aid: string; teX: bigint; teY: bigint; } ], "nonpayable">; registrationEpoch: TypedContractMethod<[], [string], "view">; registry: TypedContractMethod<[], [string], "view">; reveal: TypedContractMethod<[ eid: BytesLike, aid: BytesLike, sk: BigNumberish ], [ void ], "nonpayable">; submit: TypedContractMethod<[ eid: BytesLike, aid: BytesLike, ciphertextsTE: [BigNumberish, BigNumberish, BigNumberish, BigNumberish][] ], [ bigint ], "nonpayable">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "aidFor"): TypedContractMethod<[processId: BytesLike], [string], "view">; getFunction(nameOrSignature: "appManager"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "manager"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "plaintexts"): TypedContractMethod<[ eid: BytesLike, aid: BytesLike, first: BigNumberish, count: BigNumberish ], [ [boolean, bigint[]] & { ready: boolean; values: bigint[]; } ], "view">; getFunction(nameOrSignature: "register"): TypedContractMethod<[ processId: BytesLike, dkg: DAVINCITypes.DKGParamsStruct ], [ [ string, string, bigint, bigint ] & { eid: string; aid: string; teX: bigint; teY: bigint; } ], "nonpayable">; getFunction(nameOrSignature: "registrationEpoch"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "registry"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "reveal"): TypedContractMethod<[ eid: BytesLike, aid: BytesLike, sk: BigNumberish ], [ void ], "nonpayable">; getFunction(nameOrSignature: "submit"): TypedContractMethod<[ eid: BytesLike, aid: BytesLike, ciphertextsTE: [BigNumberish, BigNumberish, BigNumberish, BigNumberish][] ], [ bigint ], "nonpayable">; filters: {}; }