import _m0 from 'protobufjs/minimal';
export declare const protobufPackage = "yandex.cloud.iam.v1";
/** A Key resource. For more information, see [Authorized keys](/docs/iam/concepts/authorization/key). */
export interface Key {
    /** ID of the Key resource. */
    id: string;
    /** ID of the user account that the Key resource belongs to. */
    userAccountId: string | undefined;
    /** ID of the service account that the Key resource belongs to. */
    serviceAccountId: string | undefined;
    /** Creation timestamp. */
    createdAt?: Date;
    /** Description of the Key resource. 0-256 characters long. */
    description: string;
    /** An algorithm used to generate a key pair of the Key resource. */
    keyAlgorithm: Key_Algorithm;
    /** A public key of the Key resource. */
    publicKey: string;
    /** Timestamp for the last use of this key. */
    lastUsedAt?: Date;
}
export declare enum Key_Algorithm {
    ALGORITHM_UNSPECIFIED = 0,
    /** RSA_2048 - RSA with a 2048-bit key size. Default value. */
    RSA_2048 = 1,
    /** RSA_4096 - RSA with a 4096-bit key size. */
    RSA_4096 = 2,
    UNRECOGNIZED = -1
}
export declare function key_AlgorithmFromJSON(object: any): Key_Algorithm;
export declare function key_AlgorithmToJSON(object: Key_Algorithm): string;
export declare const Key: {
    encode(message: Key, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Key;
    fromJSON(object: any): Key;
    toJSON(message: Key): unknown;
    fromPartial<I extends {
        id?: string | undefined;
        userAccountId?: string | undefined;
        serviceAccountId?: string | undefined;
        createdAt?: Date | undefined;
        description?: string | undefined;
        keyAlgorithm?: Key_Algorithm | undefined;
        publicKey?: string | undefined;
        lastUsedAt?: Date | undefined;
    } & {
        id?: string | undefined;
        userAccountId?: string | undefined;
        serviceAccountId?: string | undefined;
        createdAt?: Date | undefined;
        description?: string | undefined;
        keyAlgorithm?: Key_Algorithm | undefined;
        publicKey?: string | undefined;
        lastUsedAt?: Date | undefined;
    } & Record<Exclude<keyof I, keyof Key>, never>>(object: I): Key;
};
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 {};
