import _m0 from 'protobufjs/minimal';
export declare const protobufPackage = "yandex.cloud.serverless.apigateway.websocket.v1";
export interface Connection {
    /** ID of the connection. */
    id: string;
    /** ID of the API Gateway. */
    gatewayId: string;
    /** The information about the caller making the request to API Gateway. */
    identity?: Identity;
    /** The timestamp at which connection was established. */
    connectedAt?: Date;
    /** The timestamp at which connection was last accessed. */
    lastActiveAt?: Date;
}
export interface Identity {
    /** The source IP address of the caller making the request to API Gateway. */
    sourceIp: string;
    /** The User Agent of the caller making the request to API Gateway. */
    userAgent: string;
}
export declare const Connection: {
    encode(message: Connection, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Connection;
    fromJSON(object: any): Connection;
    toJSON(message: Connection): unknown;
    fromPartial<I extends {
        id?: string | undefined;
        gatewayId?: string | undefined;
        identity?: {
            sourceIp?: string | undefined;
            userAgent?: string | undefined;
        } | undefined;
        connectedAt?: Date | undefined;
        lastActiveAt?: Date | undefined;
    } & {
        id?: string | undefined;
        gatewayId?: string | undefined;
        identity?: ({
            sourceIp?: string | undefined;
            userAgent?: string | undefined;
        } & {
            sourceIp?: string | undefined;
            userAgent?: string | undefined;
        } & Record<Exclude<keyof I["identity"], keyof Identity>, never>) | undefined;
        connectedAt?: Date | undefined;
        lastActiveAt?: Date | undefined;
    } & Record<Exclude<keyof I, keyof Connection>, never>>(object: I): Connection;
};
export declare const Identity: {
    encode(message: Identity, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Identity;
    fromJSON(object: any): Identity;
    toJSON(message: Identity): unknown;
    fromPartial<I extends {
        sourceIp?: string | undefined;
        userAgent?: string | undefined;
    } & {
        sourceIp?: string | undefined;
        userAgent?: string | undefined;
    } & Record<Exclude<keyof I, keyof Identity>, never>>(object: I): Identity;
};
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 {};
