import { Principal } from '@dfinity/principal'; import { ReverseActor } from '../..'; /** * ICNS Reverse Controller. * This class is responsible for handling all the requests related to the ICNS reverse registrar canister. */ export declare class ICNSReverseController { private reverseActor; /** * Create an instance that communicates with icns reverse registrar canister. * Some of the functions uses the actor agent identity to identify the user that is interacting. * @param {ReverseActor} reverseActor actor or an anonymous will be used */ constructor(reverseActor?: ReverseActor); /** * Get the principal of the agent. * It is going to throw if the principal is anonymous. * @internal * @returns {Promise} Return Principal of the agent */ private getAgentPrincipal; /** * set reverse name according to domain. * @param {string} domain Represents user domain, such as: 'test.icp' * @returns {Promise} domain => user principal */ setReverseName(domain: string): Promise; /** * get user's domain. * @param {Principal} owner Represents user identity * @returns {Promise} Represents user principal => domain */ getReverseName(owner: Principal): Promise; }