import _m0 from 'protobufjs/minimal';
import { LogLevel_Level } from '../../../../../yandex/cloud/logging/v1/log_entry';
export declare const protobufPackage = "yandex.cloud.iot.devices.v1";
/** A registry. For more information, see [Registry](/docs/iot-core/concepts/index#registry). */
export interface Registry {
    /** ID of the registry. */
    id: string;
    /** ID of the folder that the registry belongs to. */
    folderId: string;
    /** Creation timestamp. */
    createdAt?: Date;
    /** Name of the registry. The name is unique within the folder. */
    name: string;
    /** Description of the registry. 0-256 characters long. */
    description: string;
    /** Resource labels as `key:value` pairs. Maximum of 64 per resource. */
    labels: {
        [key: string]: string;
    };
    /** Status of the registry. */
    status: Registry_Status;
    /** ID of the logs group for the specified registry. */
    logGroupId: string;
    /** Options for logging registry events */
    logOptions?: LogOptions;
}
export declare enum Registry_Status {
    STATUS_UNSPECIFIED = 0,
    /** CREATING - Registry is being created. */
    CREATING = 1,
    /** ACTIVE - Registry is ready to use. */
    ACTIVE = 2,
    /** DELETING - Registry is being deleted. */
    DELETING = 3,
    /** DISABLED - Registry is disabled. */
    DISABLED = 4,
    UNRECOGNIZED = -1
}
export declare function registry_StatusFromJSON(object: any): Registry_Status;
export declare function registry_StatusToJSON(object: Registry_Status): string;
export interface Registry_LabelsEntry {
    key: string;
    value: string;
}
/** A registry certificate. For more information, see [Managing registry certificates](/docs/iot-core/operations/certificates/registry-certificates). */
export interface RegistryCertificate {
    /** ID of the registry that the certificate belongs to. */
    registryId: string;
    /** SHA256 hash of the certificates. */
    fingerprint: string;
    /** Public part of the certificate. */
    certificateData: string;
    /** Creation timestamp. */
    createdAt?: Date;
}
/**
 * A device topic alias.
 *
 * Alias is an alternate name of a device topic assigned by the user. Map alias to canonical topic name prefix, e.g. `my/custom/alias` match to `$device/abcdef/events`. For more information, see [Using topic aliases](/docs/iot-core/concepts/topic#aliases).
 */
export interface DeviceAlias {
    /** ID of the device that the alias belongs to. */
    deviceId: string;
    /** Prefix of a canonical topic name to be aliased, e.g. `$devices/abcdef`. */
    topicPrefix: string;
    /** Alias of a device topic. */
    alias: string;
}
/** A registry password. */
export interface RegistryPassword {
    /** ID of the registry that the password belongs to. */
    registryId: string;
    /** ID of the password. */
    id: string;
    /** Creation timestamp. */
    createdAt?: Date;
}
/** A Yandex Data Streams export. */
export interface DataStreamExport {
    /** ID of the YDS export. */
    id: string;
    /** Name of the YDS export. */
    name: string;
    /** ID of the registry that the YDS export belongs to. */
    registryId: string;
    /** MQTT topic whose messages export to YDS. */
    mqttTopicFilter: string;
    /** YDS database. */
    database: string;
    /** YDS stream name. */
    stream: string;
    /** ID of the service account which has permission to write to data stream. */
    serviceAccountId: string;
    /** Creation timestamp. */
    createdAt?: Date;
}
export interface LogOptions {
    /** Is logging from registry disabled. */
    disabled: boolean;
    /** Entry should be written to log group resolved by ID. */
    logGroupId: string | undefined;
    /** Entry should be written to default log group for specified folder. */
    folderId: string | undefined;
    /**
     * Minimum log entry level.
     *
     * See [LogLevel.Level] for details.
     */
    minLevel: LogLevel_Level;
}
export declare const Registry: {
    encode(message: Registry, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Registry;
    fromJSON(object: any): Registry;
    toJSON(message: Registry): unknown;
    fromPartial<I extends {
        id?: string | undefined;
        folderId?: string | undefined;
        createdAt?: Date | undefined;
        name?: string | undefined;
        description?: string | undefined;
        labels?: {
            [x: string]: string | undefined;
        } | undefined;
        status?: Registry_Status | undefined;
        logGroupId?: string | undefined;
        logOptions?: {
            disabled?: boolean | undefined;
            logGroupId?: string | undefined;
            folderId?: string | undefined;
            minLevel?: LogLevel_Level | undefined;
        } | undefined;
    } & {
        id?: string | undefined;
        folderId?: string | undefined;
        createdAt?: Date | undefined;
        name?: string | undefined;
        description?: string | undefined;
        labels?: ({
            [x: string]: string | undefined;
        } & {
            [x: string]: string | undefined;
        } & Record<Exclude<keyof I["labels"], string | number>, never>) | undefined;
        status?: Registry_Status | undefined;
        logGroupId?: string | undefined;
        logOptions?: ({
            disabled?: boolean | undefined;
            logGroupId?: string | undefined;
            folderId?: string | undefined;
            minLevel?: LogLevel_Level | undefined;
        } & {
            disabled?: boolean | undefined;
            logGroupId?: string | undefined;
            folderId?: string | undefined;
            minLevel?: LogLevel_Level | undefined;
        } & Record<Exclude<keyof I["logOptions"], keyof LogOptions>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof Registry>, never>>(object: I): Registry;
};
export declare const Registry_LabelsEntry: {
    encode(message: Registry_LabelsEntry, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Registry_LabelsEntry;
    fromJSON(object: any): Registry_LabelsEntry;
    toJSON(message: Registry_LabelsEntry): unknown;
    fromPartial<I extends {
        key?: string | undefined;
        value?: string | undefined;
    } & {
        key?: string | undefined;
        value?: string | undefined;
    } & Record<Exclude<keyof I, keyof Registry_LabelsEntry>, never>>(object: I): Registry_LabelsEntry;
};
export declare const RegistryCertificate: {
    encode(message: RegistryCertificate, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): RegistryCertificate;
    fromJSON(object: any): RegistryCertificate;
    toJSON(message: RegistryCertificate): unknown;
    fromPartial<I extends {
        registryId?: string | undefined;
        fingerprint?: string | undefined;
        certificateData?: string | undefined;
        createdAt?: Date | undefined;
    } & {
        registryId?: string | undefined;
        fingerprint?: string | undefined;
        certificateData?: string | undefined;
        createdAt?: Date | undefined;
    } & Record<Exclude<keyof I, keyof RegistryCertificate>, never>>(object: I): RegistryCertificate;
};
export declare const DeviceAlias: {
    encode(message: DeviceAlias, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): DeviceAlias;
    fromJSON(object: any): DeviceAlias;
    toJSON(message: DeviceAlias): unknown;
    fromPartial<I extends {
        deviceId?: string | undefined;
        topicPrefix?: string | undefined;
        alias?: string | undefined;
    } & {
        deviceId?: string | undefined;
        topicPrefix?: string | undefined;
        alias?: string | undefined;
    } & Record<Exclude<keyof I, keyof DeviceAlias>, never>>(object: I): DeviceAlias;
};
export declare const RegistryPassword: {
    encode(message: RegistryPassword, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): RegistryPassword;
    fromJSON(object: any): RegistryPassword;
    toJSON(message: RegistryPassword): unknown;
    fromPartial<I extends {
        registryId?: string | undefined;
        id?: string | undefined;
        createdAt?: Date | undefined;
    } & {
        registryId?: string | undefined;
        id?: string | undefined;
        createdAt?: Date | undefined;
    } & Record<Exclude<keyof I, keyof RegistryPassword>, never>>(object: I): RegistryPassword;
};
export declare const DataStreamExport: {
    encode(message: DataStreamExport, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): DataStreamExport;
    fromJSON(object: any): DataStreamExport;
    toJSON(message: DataStreamExport): unknown;
    fromPartial<I extends {
        id?: string | undefined;
        name?: string | undefined;
        registryId?: string | undefined;
        mqttTopicFilter?: string | undefined;
        database?: string | undefined;
        stream?: string | undefined;
        serviceAccountId?: string | undefined;
        createdAt?: Date | undefined;
    } & {
        id?: string | undefined;
        name?: string | undefined;
        registryId?: string | undefined;
        mqttTopicFilter?: string | undefined;
        database?: string | undefined;
        stream?: string | undefined;
        serviceAccountId?: string | undefined;
        createdAt?: Date | undefined;
    } & Record<Exclude<keyof I, keyof DataStreamExport>, never>>(object: I): DataStreamExport;
};
export declare const LogOptions: {
    encode(message: LogOptions, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): LogOptions;
    fromJSON(object: any): LogOptions;
    toJSON(message: LogOptions): unknown;
    fromPartial<I extends {
        disabled?: boolean | undefined;
        logGroupId?: string | undefined;
        folderId?: string | undefined;
        minLevel?: LogLevel_Level | undefined;
    } & {
        disabled?: boolean | undefined;
        logGroupId?: string | undefined;
        folderId?: string | undefined;
        minLevel?: LogLevel_Level | undefined;
    } & Record<Exclude<keyof I, keyof LogOptions>, never>>(object: I): LogOptions;
};
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
    [K in keyof T]?: DeepPartial<T[K]>;
} : Partial<T>;
type KeysOfUnion<T> = T extends T ? keyof T : never;
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
    [K in keyof P]: Exact<P[K], I[K]>;
} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
export {};
