UNPKG

@remnawave/xtls-sdk

Version:

A Typescript SDK for XRAY (XTLS) Core GRPC Api

36 lines 1.66 kB
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import { User } from "../../../common/protocol/user"; export declare const protobufPackage = "xray.proxy.vmess.inbound"; export interface DetourConfig { $type: "xray.proxy.vmess.inbound.DetourConfig"; to: string; } export interface DefaultConfig { $type: "xray.proxy.vmess.inbound.DefaultConfig"; level: number; } export interface Config { $type: "xray.proxy.vmess.inbound.Config"; user: User[]; default: DefaultConfig | undefined; /** 4 is for legacy setting */ detour: DetourConfig | undefined; } export declare const DetourConfig: MessageFns<DetourConfig, "xray.proxy.vmess.inbound.DetourConfig">; export declare const DefaultConfig: MessageFns<DefaultConfig, "xray.proxy.vmess.inbound.DefaultConfig">; export declare const Config: MessageFns<Config, "xray.proxy.vmess.inbound.Config">; 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=config.d.ts.map