/// <reference types="node" />
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js';
import _m0 from 'protobufjs/minimal';
import { SaasInfo, ProductInstance } from '../../../../../../yandex/cloud/marketplace/pim/v1/saas/product_instance';
import { Operation } from '../../../../../../yandex/cloud/operation/operation';
export declare const protobufPackage = "yandex.cloud.marketplace.pim.v1.saas";
export interface GetProductInstanceRequest {
    productInstanceId: string;
}
export interface ClaimProductInstanceRequest {
    token: string;
    resourceId: string;
    resourceInfo?: SaasInfo;
}
export interface ClaimProductInstanceMetadata {
    productId: string;
    productInstanceId: string;
    licenseInstanceId: string;
}
export declare const GetProductInstanceRequest: {
    encode(message: GetProductInstanceRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): GetProductInstanceRequest;
    fromJSON(object: any): GetProductInstanceRequest;
    toJSON(message: GetProductInstanceRequest): unknown;
    fromPartial<I extends {
        productInstanceId?: string | undefined;
    } & {
        productInstanceId?: string | undefined;
    } & Record<Exclude<keyof I, "productInstanceId">, never>>(object: I): GetProductInstanceRequest;
};
export declare const ClaimProductInstanceRequest: {
    encode(message: ClaimProductInstanceRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ClaimProductInstanceRequest;
    fromJSON(object: any): ClaimProductInstanceRequest;
    toJSON(message: ClaimProductInstanceRequest): unknown;
    fromPartial<I extends {
        token?: string | undefined;
        resourceId?: string | undefined;
        resourceInfo?: {
            id?: string | undefined;
            data?: {
                [x: string]: string | undefined;
            } | undefined;
        } | undefined;
    } & {
        token?: string | undefined;
        resourceId?: string | undefined;
        resourceInfo?: ({
            id?: string | undefined;
            data?: {
                [x: string]: string | undefined;
            } | undefined;
        } & {
            id?: string | undefined;
            data?: ({
                [x: string]: string | undefined;
            } & {
                [x: string]: string | undefined;
            } & Record<Exclude<keyof I["resourceInfo"]["data"], string | number>, never>) | undefined;
        } & Record<Exclude<keyof I["resourceInfo"], keyof SaasInfo>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof ClaimProductInstanceRequest>, never>>(object: I): ClaimProductInstanceRequest;
};
export declare const ClaimProductInstanceMetadata: {
    encode(message: ClaimProductInstanceMetadata, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ClaimProductInstanceMetadata;
    fromJSON(object: any): ClaimProductInstanceMetadata;
    toJSON(message: ClaimProductInstanceMetadata): unknown;
    fromPartial<I extends {
        productId?: string | undefined;
        productInstanceId?: string | undefined;
        licenseInstanceId?: string | undefined;
    } & {
        productId?: string | undefined;
        productInstanceId?: string | undefined;
        licenseInstanceId?: string | undefined;
    } & Record<Exclude<keyof I, keyof ClaimProductInstanceMetadata>, never>>(object: I): ClaimProductInstanceMetadata;
};
export declare const ProductInstanceServiceService: {
    readonly get: {
        readonly path: "/yandex.cloud.marketplace.pim.v1.saas.ProductInstanceService/Get";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: GetProductInstanceRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => GetProductInstanceRequest;
        readonly responseSerialize: (value: ProductInstance) => Buffer;
        readonly responseDeserialize: (value: Buffer) => ProductInstance;
    };
    readonly claim: {
        readonly path: "/yandex.cloud.marketplace.pim.v1.saas.ProductInstanceService/Claim";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: ClaimProductInstanceRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => ClaimProductInstanceRequest;
        readonly responseSerialize: (value: Operation) => Buffer;
        readonly responseDeserialize: (value: Buffer) => Operation;
    };
};
export interface ProductInstanceServiceServer extends UntypedServiceImplementation {
    get: handleUnaryCall<GetProductInstanceRequest, ProductInstance>;
    claim: handleUnaryCall<ClaimProductInstanceRequest, Operation>;
}
export interface ProductInstanceServiceClient extends Client {
    get(request: GetProductInstanceRequest, callback: (error: ServiceError | null, response: ProductInstance) => void): ClientUnaryCall;
    get(request: GetProductInstanceRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ProductInstance) => void): ClientUnaryCall;
    get(request: GetProductInstanceRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ProductInstance) => void): ClientUnaryCall;
    claim(request: ClaimProductInstanceRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
    claim(request: ClaimProductInstanceRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
    claim(request: ClaimProductInstanceRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall;
}
export declare const ProductInstanceServiceClient: {
    new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): ProductInstanceServiceClient;
    service: typeof ProductInstanceServiceService;
};
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 {};
