/// <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.loadtesting.agent.v1";
export interface ClaimAgentStatusRequest {
    agentInstanceId: string;
    status: ClaimAgentStatusRequest_Status;
    statusMessage: string;
}
export declare enum ClaimAgentStatusRequest_Status {
    STATUS_UNSPECIFIED = 0,
    READY_FOR_TEST = 1,
    PREPARING_TEST = 2,
    TESTING = 3,
    TANK_FAILED = 4,
    STOPPED = 5,
    UPLOADING_ARTIFACTS = 6,
    ERROR = 7,
    UNRECOGNIZED = -1
}
export declare function claimAgentStatusRequest_StatusFromJSON(object: any): ClaimAgentStatusRequest_Status;
export declare function claimAgentStatusRequest_StatusToJSON(object: ClaimAgentStatusRequest_Status): string;
export interface ClaimAgentStatusResponse {
    code: number;
}
export interface ReportEventLogsRequest {
    agentInstanceId: string;
    idempotencyKey: string;
    events: EventLog[];
}
export interface ReportEventLogsResponse {
}
export interface EventLog {
    message: string;
    severity: EventLog_Severity;
    timestamp?: Date;
    metadata: {
        [key: string]: string;
    };
}
export declare enum EventLog_Severity {
    SEVERITY_UNSPECIFIED = 0,
    DEBUG = 1,
    INFO = 2,
    WARNING = 3,
    ERROR = 4,
    FATAL = 5,
    UNRECOGNIZED = -1
}
export declare function eventLog_SeverityFromJSON(object: any): EventLog_Severity;
export declare function eventLog_SeverityToJSON(object: EventLog_Severity): string;
export interface EventLog_MetadataEntry {
    key: string;
    value: string;
}
export declare const ClaimAgentStatusRequest: {
    encode(message: ClaimAgentStatusRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ClaimAgentStatusRequest;
    fromJSON(object: any): ClaimAgentStatusRequest;
    toJSON(message: ClaimAgentStatusRequest): unknown;
    fromPartial<I extends {
        agentInstanceId?: string | undefined;
        status?: ClaimAgentStatusRequest_Status | undefined;
        statusMessage?: string | undefined;
    } & {
        agentInstanceId?: string | undefined;
        status?: ClaimAgentStatusRequest_Status | undefined;
        statusMessage?: string | undefined;
    } & Record<Exclude<keyof I, keyof ClaimAgentStatusRequest>, never>>(object: I): ClaimAgentStatusRequest;
};
export declare const ClaimAgentStatusResponse: {
    encode(message: ClaimAgentStatusResponse, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ClaimAgentStatusResponse;
    fromJSON(object: any): ClaimAgentStatusResponse;
    toJSON(message: ClaimAgentStatusResponse): unknown;
    fromPartial<I extends {
        code?: number | undefined;
    } & {
        code?: number | undefined;
    } & Record<Exclude<keyof I, "code">, never>>(object: I): ClaimAgentStatusResponse;
};
export declare const ReportEventLogsRequest: {
    encode(message: ReportEventLogsRequest, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ReportEventLogsRequest;
    fromJSON(object: any): ReportEventLogsRequest;
    toJSON(message: ReportEventLogsRequest): unknown;
    fromPartial<I extends {
        agentInstanceId?: string | undefined;
        idempotencyKey?: string | undefined;
        events?: {
            message?: string | undefined;
            severity?: EventLog_Severity | undefined;
            timestamp?: Date | undefined;
            metadata?: {
                [x: string]: string | undefined;
            } | undefined;
        }[] | undefined;
    } & {
        agentInstanceId?: string | undefined;
        idempotencyKey?: string | undefined;
        events?: ({
            message?: string | undefined;
            severity?: EventLog_Severity | undefined;
            timestamp?: Date | undefined;
            metadata?: {
                [x: string]: string | undefined;
            } | undefined;
        }[] & ({
            message?: string | undefined;
            severity?: EventLog_Severity | undefined;
            timestamp?: Date | undefined;
            metadata?: {
                [x: string]: string | undefined;
            } | undefined;
        } & {
            message?: string | undefined;
            severity?: EventLog_Severity | undefined;
            timestamp?: Date | undefined;
            metadata?: ({
                [x: string]: string | undefined;
            } & {
                [x: string]: string | undefined;
            } & Record<Exclude<keyof I["events"][number]["metadata"], string | number>, never>) | undefined;
        } & Record<Exclude<keyof I["events"][number], keyof EventLog>, never>)[] & Record<Exclude<keyof I["events"], keyof {
            message?: string | undefined;
            severity?: EventLog_Severity | undefined;
            timestamp?: Date | undefined;
            metadata?: {
                [x: string]: string | undefined;
            } | undefined;
        }[]>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof ReportEventLogsRequest>, never>>(object: I): ReportEventLogsRequest;
};
export declare const ReportEventLogsResponse: {
    encode(_: ReportEventLogsResponse, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ReportEventLogsResponse;
    fromJSON(_: any): ReportEventLogsResponse;
    toJSON(_: ReportEventLogsResponse): unknown;
    fromPartial<I extends {} & {} & Record<Exclude<keyof I, never>, never>>(_: I): ReportEventLogsResponse;
};
export declare const EventLog: {
    encode(message: EventLog, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): EventLog;
    fromJSON(object: any): EventLog;
    toJSON(message: EventLog): unknown;
    fromPartial<I extends {
        message?: string | undefined;
        severity?: EventLog_Severity | undefined;
        timestamp?: Date | undefined;
        metadata?: {
            [x: string]: string | undefined;
        } | undefined;
    } & {
        message?: string | undefined;
        severity?: EventLog_Severity | undefined;
        timestamp?: Date | undefined;
        metadata?: ({
            [x: string]: string | undefined;
        } & {
            [x: string]: string | undefined;
        } & Record<Exclude<keyof I["metadata"], string | number>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof EventLog>, never>>(object: I): EventLog;
};
export declare const EventLog_MetadataEntry: {
    encode(message: EventLog_MetadataEntry, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): EventLog_MetadataEntry;
    fromJSON(object: any): EventLog_MetadataEntry;
    toJSON(message: EventLog_MetadataEntry): unknown;
    fromPartial<I extends {
        key?: string | undefined;
        value?: string | undefined;
    } & {
        key?: string | undefined;
        value?: string | undefined;
    } & Record<Exclude<keyof I, keyof EventLog_MetadataEntry>, never>>(object: I): EventLog_MetadataEntry;
};
export declare const AgentServiceService: {
    /** Claims status for the specified agent. */
    readonly claimStatus: {
        readonly path: "/yandex.cloud.loadtesting.agent.v1.AgentService/ClaimStatus";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: ClaimAgentStatusRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => ClaimAgentStatusRequest;
        readonly responseSerialize: (value: ClaimAgentStatusResponse) => Buffer;
        readonly responseDeserialize: (value: Buffer) => ClaimAgentStatusResponse;
    };
    readonly reportEventLogs: {
        readonly path: "/yandex.cloud.loadtesting.agent.v1.AgentService/ReportEventLogs";
        readonly requestStream: false;
        readonly responseStream: false;
        readonly requestSerialize: (value: ReportEventLogsRequest) => Buffer;
        readonly requestDeserialize: (value: Buffer) => ReportEventLogsRequest;
        readonly responseSerialize: (value: ReportEventLogsResponse) => Buffer;
        readonly responseDeserialize: (value: Buffer) => ReportEventLogsResponse;
    };
};
export interface AgentServiceServer extends UntypedServiceImplementation {
    /** Claims status for the specified agent. */
    claimStatus: handleUnaryCall<ClaimAgentStatusRequest, ClaimAgentStatusResponse>;
    reportEventLogs: handleUnaryCall<ReportEventLogsRequest, ReportEventLogsResponse>;
}
export interface AgentServiceClient extends Client {
    /** Claims status for the specified agent. */
    claimStatus(request: ClaimAgentStatusRequest, callback: (error: ServiceError | null, response: ClaimAgentStatusResponse) => void): ClientUnaryCall;
    claimStatus(request: ClaimAgentStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ClaimAgentStatusResponse) => void): ClientUnaryCall;
    claimStatus(request: ClaimAgentStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ClaimAgentStatusResponse) => void): ClientUnaryCall;
    reportEventLogs(request: ReportEventLogsRequest, callback: (error: ServiceError | null, response: ReportEventLogsResponse) => void): ClientUnaryCall;
    reportEventLogs(request: ReportEventLogsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ReportEventLogsResponse) => void): ClientUnaryCall;
    reportEventLogs(request: ReportEventLogsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ReportEventLogsResponse) => void): ClientUnaryCall;
}
export declare const AgentServiceClient: {
    new (address: string, credentials: ChannelCredentials, options?: Partial<ChannelOptions>): AgentServiceClient;
    service: typeof AgentServiceService;
};
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 {};
