import _m0 from 'protobufjs/minimal';
import { Template } from '../../../../../yandex/cloud/marketplace/licensemanager/v1/template';
import { Lock } from '../../../../../yandex/cloud/marketplace/licensemanager/v1/lock';
export declare const protobufPackage = "yandex.cloud.marketplace.licensemanager.v1";
export interface Instance {
    /** ID of the subscription instance. */
    id: string;
    /** ID of the cloud that the subscription instance belongs to. */
    cloudId: string;
    /** ID of the folder that the subscription instance belongs to. */
    folderId: string;
    /** ID of the subscription template that was used to create subscription instance. */
    templateId: string;
    /** ID of the version of subscription template. */
    templateVersionId: string;
    /** Description of the subscription instance. */
    description: string;
    /** Timestamp of the start of the subscription. */
    startTime?: Date;
    /** Timestamp of the end of the subscription. */
    endTime?: Date;
    /** Creation timestamp. */
    createdAt?: Date;
    /** Update timestamp. */
    updatedAt?: Date;
    /** Subscription state. */
    state: Instance_State;
    /** List of subscription locks. */
    locks: Lock[];
    /** Subscription template. */
    licenseTemplate?: Template;
}
export declare enum Instance_State {
    STATE_UNSPECIFIED = 0,
    /** PENDING - Subscription created but not active yet. */
    PENDING = 1,
    /** ACTIVE - Subscription is active. */
    ACTIVE = 2,
    /** CANCELLED - Subscription canceled. It is still active, but won't be automatically renewed after the end of the current period. */
    CANCELLED = 3,
    /** EXPIRED - Subscription expired. */
    EXPIRED = 4,
    /** DEPRECATED - Subscription deprecated. */
    DEPRECATED = 5,
    /** DELETED - Subscription deleted. */
    DELETED = 6,
    UNRECOGNIZED = -1
}
export declare function instance_StateFromJSON(object: any): Instance_State;
export declare function instance_StateToJSON(object: Instance_State): string;
export declare const Instance: {
    encode(message: Instance, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Instance;
    fromJSON(object: any): Instance;
    toJSON(message: Instance): unknown;
    fromPartial<I extends {
        id?: string | undefined;
        cloudId?: string | undefined;
        folderId?: string | undefined;
        templateId?: string | undefined;
        templateVersionId?: string | undefined;
        description?: string | undefined;
        startTime?: Date | undefined;
        endTime?: Date | undefined;
        createdAt?: Date | undefined;
        updatedAt?: Date | undefined;
        state?: Instance_State | undefined;
        locks?: {
            id?: string | undefined;
            instanceId?: string | undefined;
            resourceId?: string | undefined;
            startTime?: Date | undefined;
            endTime?: Date | undefined;
            createdAt?: Date | undefined;
            updatedAt?: Date | undefined;
            state?: import("../../../../../yandex/cloud/marketplace/licensemanager/v1/lock").Lock_State | undefined;
            templateId?: string | undefined;
        }[] | undefined;
        licenseTemplate?: {
            id?: string | undefined;
            versionId?: string | undefined;
            name?: string | undefined;
            publisherId?: string | undefined;
            productId?: string | undefined;
            tariffId?: string | undefined;
            licenseSkuId?: string | undefined;
            period?: string | undefined;
            createdAt?: Date | undefined;
            updatedAt?: Date | undefined;
            state?: import("../../../../../yandex/cloud/marketplace/licensemanager/v1/template").Template_State | undefined;
        } | undefined;
    } & {
        id?: string | undefined;
        cloudId?: string | undefined;
        folderId?: string | undefined;
        templateId?: string | undefined;
        templateVersionId?: string | undefined;
        description?: string | undefined;
        startTime?: Date | undefined;
        endTime?: Date | undefined;
        createdAt?: Date | undefined;
        updatedAt?: Date | undefined;
        state?: Instance_State | undefined;
        locks?: ({
            id?: string | undefined;
            instanceId?: string | undefined;
            resourceId?: string | undefined;
            startTime?: Date | undefined;
            endTime?: Date | undefined;
            createdAt?: Date | undefined;
            updatedAt?: Date | undefined;
            state?: import("../../../../../yandex/cloud/marketplace/licensemanager/v1/lock").Lock_State | undefined;
            templateId?: string | undefined;
        }[] & ({
            id?: string | undefined;
            instanceId?: string | undefined;
            resourceId?: string | undefined;
            startTime?: Date | undefined;
            endTime?: Date | undefined;
            createdAt?: Date | undefined;
            updatedAt?: Date | undefined;
            state?: import("../../../../../yandex/cloud/marketplace/licensemanager/v1/lock").Lock_State | undefined;
            templateId?: string | undefined;
        } & {
            id?: string | undefined;
            instanceId?: string | undefined;
            resourceId?: string | undefined;
            startTime?: Date | undefined;
            endTime?: Date | undefined;
            createdAt?: Date | undefined;
            updatedAt?: Date | undefined;
            state?: import("../../../../../yandex/cloud/marketplace/licensemanager/v1/lock").Lock_State | undefined;
            templateId?: string | undefined;
        } & Record<Exclude<keyof I["locks"][number], keyof Lock>, never>)[] & Record<Exclude<keyof I["locks"], keyof {
            id?: string | undefined;
            instanceId?: string | undefined;
            resourceId?: string | undefined;
            startTime?: Date | undefined;
            endTime?: Date | undefined;
            createdAt?: Date | undefined;
            updatedAt?: Date | undefined;
            state?: import("../../../../../yandex/cloud/marketplace/licensemanager/v1/lock").Lock_State | undefined;
            templateId?: string | undefined;
        }[]>, never>) | undefined;
        licenseTemplate?: ({
            id?: string | undefined;
            versionId?: string | undefined;
            name?: string | undefined;
            publisherId?: string | undefined;
            productId?: string | undefined;
            tariffId?: string | undefined;
            licenseSkuId?: string | undefined;
            period?: string | undefined;
            createdAt?: Date | undefined;
            updatedAt?: Date | undefined;
            state?: import("../../../../../yandex/cloud/marketplace/licensemanager/v1/template").Template_State | undefined;
        } & {
            id?: string | undefined;
            versionId?: string | undefined;
            name?: string | undefined;
            publisherId?: string | undefined;
            productId?: string | undefined;
            tariffId?: string | undefined;
            licenseSkuId?: string | undefined;
            period?: string | undefined;
            createdAt?: Date | undefined;
            updatedAt?: Date | undefined;
            state?: import("../../../../../yandex/cloud/marketplace/licensemanager/v1/template").Template_State | undefined;
        } & Record<Exclude<keyof I["licenseTemplate"], keyof Template>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof Instance>, never>>(object: I): Instance;
};
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 {};
