import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
export declare const protobufPackage = "xray.common.protocol";
export declare enum SecurityType {
    UNKNOWN = 0,
    AUTO = 2,
    AES128_GCM = 3,
    CHACHA20_POLY1305 = 4,
    /** NONE - [DEPRECATED 2023-06] */
    NONE = 5,
    ZERO = 6,
    UNRECOGNIZED = -1
}
export declare function securityTypeFromJSON(object: any): SecurityType;
export declare function securityTypeToJSON(object: SecurityType): string;
export interface SecurityConfig {
    $type: "xray.common.protocol.SecurityConfig";
    type: SecurityType;
}
export declare const SecurityConfig: MessageFns<SecurityConfig, "xray.common.protocol.SecurityConfig">;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
    [K in Exclude<keyof T, "$type">]?: DeepPartial<T[K]>;
} : Partial<T>;
export interface MessageFns<T, V extends string> {
    readonly $type: V;
    encode(message: T, writer?: BinaryWriter): BinaryWriter;
    decode(input: BinaryReader | Uint8Array, length?: number): T;
    fromJSON(object: any): T;
    toJSON(message: T): unknown;
    create(base?: DeepPartial<T>): T;
    fromPartial(object: DeepPartial<T>): T;
}
export {};
//# sourceMappingURL=headers.d.ts.map