import { PublicAccount } from '../account/PublicAccount'; import { UInt64 } from '../UInt64'; import { Alias } from './Alias'; import { NamespaceId } from './NamespaceId'; /** * Object containing information of a namespace. */ export declare class NamespaceInfo { readonly active: boolean; /** * The namespace index. */ readonly index: number; /** * The meta data id. */ readonly metaId: string; /** * The namespace registration type, namespace and sub namespace. */ private readonly registrationType; /** * The level of namespace. */ readonly depth: number; /** * The namespace id levels. */ readonly levels: NamespaceId[]; /** * The namespace parent id. */ private readonly parentId; /** * The owner of the namespace. */ readonly owner: PublicAccount; /** * The height at which the ownership begins. */ readonly startHeight: UInt64; /** * The height at which the ownership ends. */ readonly endHeight: UInt64; /** * The alias linked to a namespace. */ readonly alias: Alias; /** * @param active * @param index * @param metaId * @param registrationType * @param depth * @param levels * @param parentId * @param owner * @param startHeight * @param endHeight */ constructor(/** * Namespace is active. */ active: boolean, /** * The namespace index. */ index: number, /** * The meta data id. */ metaId: string, /** * The namespace registration type, namespace and sub namespace. */ registrationType: number, /** * The level of namespace. */ depth: number, /** * The namespace id levels. */ levels: NamespaceId[], /** * The namespace parent id. */ parentId: NamespaceId, /** * The owner of the namespace. */ owner: PublicAccount, /** * The height at which the ownership begins. */ startHeight: UInt64, /** * The height at which the ownership ends. */ endHeight: UInt64, /** * The alias linked to a namespace. */ alias: Alias); /** * Namespace id * @returns {Id} */ readonly id: NamespaceId; /** * Is root namespace * @returns {boolean} */ isRoot(): boolean; /** * Is sub namepsace * @returns {boolean} */ isSubnamespace(): boolean; /** * Has alias * @returns {boolean} */ hasAlias(): boolean; /** * Get parent id * @returns {Id} */ parentNamespaceId(): NamespaceId; }