/// <reference types="node" />
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js';
import _m0 from 'protobufjs/minimal';
export declare const protobufPackage = "yandex.cloud.iot.devices.v1";
export interface PublishRegistryDataRequest {
    /** ID of registry publishing message */
    registryId: string;
    /** Topic where message should be published */
    topic: string;
    /** Content of the message */
    data: Buffer;
}
export interface PublishRegistryDataResponse {
}
export declare const PublishRegistryDataRequest: {
    encode(message: PublishRegistryDataRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): PublishRegistryDataRequest;
    fromJSON(object: any): PublishRegistryDataRequest;
    toJSON(message: PublishRegistryDataRequest): unknown;
    fromPartial<I extends {
        registryId?: string | undefined;
        topic?: string | undefined;
        data?: Buffer | undefined;
    } & {
        registryId?: string | undefined;
        topic?: string | undefined;
        data?: Buffer | undefined;
    } & Record<Exclude<keyof I, keyof PublishRegistryDataRequest>, never>>(object: I): PublishRegistryDataRequest;
};
export declare const PublishRegistryDataResponse: {
    encode(_: PublishRegistryDataResponse, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): PublishRegistryDataResponse;
    fromJSON(_: any): PublishRegistryDataResponse;
    toJSON(_: PublishRegistryDataResponse): unknown;
    fromPartial<I extends {} & {} & Record<Exclude<keyof I, never>, never>>(_: I): PublishRegistryDataResponse;
};
/** A set of methods to work with IoT Core messages on behalf of registry */
export declare const RegistryDataServiceService: {
    /** Publishes message on behalf of specified registry */
    readonly publish: {
        readonly path: "/yandex.cloud.iot.devices.v1.RegistryDataService/Publish";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: PublishRegistryDataRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => PublishRegistryDataRequest;
        readonly responseSerialize: (value: PublishRegistryDataResponse) => Buffer;
        readonly responseDeserialize: (value: Buffer) => PublishRegistryDataResponse;
    };
};
export interface RegistryDataServiceServer extends UntypedServiceImplementation {
    /** Publishes message on behalf of specified registry */
    publish: handleUnaryCall<PublishRegistryDataRequest, PublishRegistryDataResponse>;
}
export interface RegistryDataServiceClient extends Client {
    /** Publishes message on behalf of specified registry */
    publish(request: PublishRegistryDataRequest, callback: (error: ServiceError | null, response: PublishRegistryDataResponse) => void): ClientUnaryCall;
    publish(request: PublishRegistryDataRequest, metadata: Metadata, callback: (error: ServiceError | null, response: PublishRegistryDataResponse) => void): ClientUnaryCall;
    publish(request: PublishRegistryDataRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: PublishRegistryDataResponse) => void): ClientUnaryCall;
}
export declare const RegistryDataServiceClient: {
    new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): RegistryDataServiceClient;
    service: typeof RegistryDataServiceService;
};
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 {};
