import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import { Network } from "../../common/net/network"; import { ServerEndpoint } from "../../common/protocol/server_spec"; import { User } from "../../common/protocol/user"; export declare const protobufPackage = "xray.proxy.shadowsocks"; export declare enum CipherType { UNKNOWN = 0, AES_128_GCM = 5, AES_256_GCM = 6, CHACHA20_POLY1305 = 7, XCHACHA20_POLY1305 = 8, NONE = 9, UNRECOGNIZED = -1 } export declare function cipherTypeFromJSON(object: any): CipherType; export declare function cipherTypeToJSON(object: CipherType): string; export interface Account { $type: "xray.proxy.shadowsocks.Account"; password: string; cipherType: CipherType; ivCheck: boolean; } export interface ServerConfig { $type: "xray.proxy.shadowsocks.ServerConfig"; users: User[]; network: Network[]; } export interface ClientConfig { $type: "xray.proxy.shadowsocks.ClientConfig"; server: ServerEndpoint | undefined; } export declare const Account: MessageFns; export declare const ServerConfig: MessageFns; export declare const ClientConfig: MessageFns; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in Exclude]?: DeepPartial; } : Partial; export interface MessageFns { 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; fromPartial(object: DeepPartial): T; } export {}; //# sourceMappingURL=config.d.ts.map