import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; export declare const protobufPackage = "xray.app.policy"; export interface Second { $type: "xray.app.policy.Second"; value: number; } export interface Policy { $type: "xray.app.policy.Policy"; timeout: Policy_Timeout | undefined; stats: Policy_Stats | undefined; buffer: Policy_Buffer | undefined; } /** Timeout is a message for timeout settings in various stages, in seconds. */ export interface Policy_Timeout { $type: "xray.app.policy.Policy.Timeout"; handshake: Second | undefined; connectionIdle: Second | undefined; uplinkOnly: Second | undefined; downlinkOnly: Second | undefined; } export interface Policy_Stats { $type: "xray.app.policy.Policy.Stats"; userUplink: boolean; userDownlink: boolean; userOnline: boolean; } export interface Policy_Buffer { $type: "xray.app.policy.Policy.Buffer"; /** Buffer size per connection, in bytes. -1 for unlimited buffer. */ connection: number; } export interface SystemPolicy { $type: "xray.app.policy.SystemPolicy"; stats: SystemPolicy_Stats | undefined; } export interface SystemPolicy_Stats { $type: "xray.app.policy.SystemPolicy.Stats"; inboundUplink: boolean; inboundDownlink: boolean; outboundUplink: boolean; outboundDownlink: boolean; } export interface Config { $type: "xray.app.policy.Config"; level: { [key: number]: Policy; }; system: SystemPolicy | undefined; } export interface Config_LevelEntry { $type: "xray.app.policy.Config.LevelEntry"; key: number; value: Policy | undefined; } export declare const Second: MessageFns; export declare const Policy: MessageFns; export declare const Policy_Timeout: MessageFns; export declare const Policy_Stats: MessageFns; export declare const Policy_Buffer: MessageFns; export declare const SystemPolicy: MessageFns; export declare const SystemPolicy_Stats: MessageFns; export declare const Config: MessageFns; export declare const Config_LevelEntry: 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