/**
 * Copyright (C) 2024 Hedera Hashgraph, LLC
 *
 * Licensed under the Apache License, Version 2.0 (the ""License"");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an ""AS IS"" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
import { Migration } from './migration.js';
import type { EmailAddress, Namespace, Version } from './types.js';
import type { Optional, ToObject, Validate } from '../../../types/index.js';
export interface RemoteConfigMetadataStructure {
    name: Namespace;
    lastUpdatedAt: Date;
    lastUpdateBy: EmailAddress;
    migration?: Migration;
}
/**
 * Represent the remote config metadata object and handles:
 * - Validation
 * - Reading
 * - Making a migration
 * - Converting from and to plain object
 */
export declare class RemoteConfigMetadata implements RemoteConfigMetadataStructure, Validate, ToObject<RemoteConfigMetadataStructure> {
    private readonly _name;
    private readonly _lastUpdatedAt;
    private readonly _lastUpdateBy;
    private _migration?;
    constructor(name: Namespace, lastUpdatedAt: Date, lastUpdateBy: EmailAddress, migration?: Migration);
    /** Simplifies making a migration */
    makeMigration(email: EmailAddress, fromVersion: Version): void;
    /** Retrieves the namespace */
    get name(): Namespace;
    /** Retrieves the date when the remote config metadata was last updated */
    get lastUpdatedAt(): Date;
    /** Retrieves the email of the user who last updated the remote config metadata */
    get lastUpdateBy(): EmailAddress;
    /** Retrieves the migration if such exists */
    get migration(): Optional<Migration>;
    /** Handles conversion from plain object to instance */
    static fromObject(metadata: RemoteConfigMetadataStructure): RemoteConfigMetadata;
    validate(): void;
    toObject(): RemoteConfigMetadataStructure;
}
