/// <reference types="node" />
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js';
import _m0 from 'protobufjs/minimal';
import { Operation } from '../../../../yandex/cloud/operation/operation';
export declare const protobufPackage = "yandex.cloud.datasphere.v2";
export interface ActivateS3Request {
    s3Id: string;
    projectId: string;
}
export interface DeactivateS3Request {
    s3Id: string;
    projectId: string;
}
export declare const ActivateS3Request: {
    encode(message: ActivateS3Request, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ActivateS3Request;
    fromJSON(object: any): ActivateS3Request;
    toJSON(message: ActivateS3Request): unknown;
    fromPartial<I extends {
        s3Id?: string | undefined;
        projectId?: string | undefined;
    } & {
        s3Id?: string | undefined;
        projectId?: string | undefined;
    } & Record<Exclude<keyof I, keyof ActivateS3Request>, never>>(object: I): ActivateS3Request;
};
export declare const DeactivateS3Request: {
    encode(message: DeactivateS3Request, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): DeactivateS3Request;
    fromJSON(object: any): DeactivateS3Request;
    toJSON(message: DeactivateS3Request): unknown;
    fromPartial<I extends {
        s3Id?: string | undefined;
        projectId?: string | undefined;
    } & {
        s3Id?: string | undefined;
        projectId?: string | undefined;
    } & Record<Exclude<keyof I, keyof DeactivateS3Request>, never>>(object: I): DeactivateS3Request;
};
/** A set of methods for managing S3 configurations. */
export declare const S3ServiceService: {
    /** Activates shared s3 for project */
    readonly activate: {
        readonly path: "/yandex.cloud.datasphere.v2.S3Service/Activate";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: ActivateS3Request) => Buffer;
        readonly requestDeserialize: (value: Buffer) => ActivateS3Request;
        readonly responseSerialize: (value: Operation) => Buffer;
        readonly responseDeserialize: (value: Buffer) => Operation;
    };
    /** Deactivates shared s3 for project */
    readonly deactivate: {
        readonly path: "/yandex.cloud.datasphere.v2.S3Service/Deactivate";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: DeactivateS3Request) => Buffer;
        readonly requestDeserialize: (value: Buffer) => DeactivateS3Request;
        readonly responseSerialize: (value: Operation) => Buffer;
        readonly responseDeserialize: (value: Buffer) => Operation;
    };
};
export interface S3ServiceServer extends UntypedServiceImplementation {
    /** Activates shared s3 for project */
    activate: handleUnaryCall<ActivateS3Request, Operation>;
    /** Deactivates shared s3 for project */
    deactivate: handleUnaryCall<DeactivateS3Request, Operation>;
}
export interface S3ServiceClient extends Client {
    /** Activates shared s3 for project */
    activate(request: ActivateS3Request, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
    activate(request: ActivateS3Request, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
    activate(request: ActivateS3Request, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
    /** Deactivates shared s3 for project */
    deactivate(request: DeactivateS3Request, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
    deactivate(request: DeactivateS3Request, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
    deactivate(request: DeactivateS3Request, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
}
export declare const S3ServiceClient: {
    new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): S3ServiceClient;
    service: typeof S3ServiceService;
};
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 {};
