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