export declare type Constructor = new (...args: any[]) => T; export declare type AnyFunction = (...args: any) => any; export declare type UnionToIntersection = (Union extends any ? (argument: Union) => void : never) extends (argument: infer Intersection) => void ? Intersection : never; export declare type Return = T extends AnyFunction ? ReturnType : T extends AnyFunction[] ? UnionToIntersection> : never; export declare const MissingWalletError: Error; export declare function getStructure(template: any): { fields: unknown[]; };