/* This file is part of web3.js. web3.js is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. web3.js is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with web3.js. If not, see . */ /** * @file index.d.ts * @author Samuel Furter , Josh Stevens * @date 2018 */ import { PromiEvent, TransactionConfig } from 'web3-core'; import { Eth } from 'web3-eth'; import { Contract } from 'web3-eth-contract'; export class Ens { constructor(eth: Eth); registry: Registry; resolver(name: string): Promise; supportsInterface( name: string, interfaceId: string, callback?: (error: Error, supportsInterface: boolean) => void ): Promise; getAddress( name: string, callback?: (error: Error, address: string) => void ): Promise; setAddress( name: string, address: string, sendOptions: TransactionConfig, callback?: (error: Error, result: any) => void ): PromiEvent; getPubkey( name: string, callback?: (error: Error, result: { [x: string]: string }) => void ): Promise<{ [x: string]: string }>; setPubkey( name: string, x: string, y: string, sendOptions: TransactionConfig, callback?: (error: Error, result: any) => void ): PromiEvent; getText( name: string, key: string, callback?: (error: Error, ensName: string) => void ): Promise; setText( name: string, key: string, value: string, sendOptions: TransactionConfig, callback?: (error: Error, result: any) => void ): PromiEvent; getContent( name: string, callback?: (error: Error, contentHash: string) => void ): Promise; setContent( name: string, hash: string, sendOptions: TransactionConfig, callback?: (error: Error, result: any) => void ): PromiEvent; getMultihash( name: string, callback?: (error: Error, multihash: string) => void ): Promise; setMultihash( name: string, hash: string, sendOptions: TransactionConfig, callback?: (error: Error, result: any) => void ): PromiEvent; getContenthash( name: string, callback?: (error: Error, contenthash: string) => void ): Promise; setContenthash( name: string, hash: string, sendOptions: TransactionConfig, callback?: (error: Error, result: any) => void ): PromiEvent; } export class Registry { constructor(ens: Ens); ens: Ens; contract: Contract | null; owner( name: string, callback?: (error: Error, address: string) => void ): Promise; resolver(name: string): Promise; }