dsh-mobile 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.mts CHANGED
@@ -28,9 +28,9 @@ interface DeviceStore {
28
28
  save(snapshot: DeviceSnapshot): Promise<void>;
29
29
  }
30
30
  /** Validate durable data before it can authorize a device. */
31
- declare function parseDeviceSnapshot(value: unknown, maximumDevices?: number): DeviceSnapshot;
31
+ export declare function parseDeviceSnapshot(value: unknown, maximumDevices?: number): DeviceSnapshot;
32
32
  /** Atomic JSON implementation with symlink refusal and owner-only file creation. */
33
- declare class JsonDeviceStore implements DeviceStore {
33
+ export declare class JsonDeviceStore implements DeviceStore {
34
34
  private readonly file;
35
35
  private readonly maximumDevices;
36
36
  constructor(file: string, maximumDevices?: number);
@@ -38,7 +38,7 @@ declare class JsonDeviceStore implements DeviceStore {
38
38
  save(snapshot: DeviceSnapshot): Promise<void>;
39
39
  }
40
40
  /** In-memory store useful for embedding and deterministic tests. */
41
- declare class MemoryDeviceStore implements DeviceStore {
41
+ export declare class MemoryDeviceStore implements DeviceStore {
42
42
  private snapshot;
43
43
  constructor(initial?: DeviceSnapshot);
44
44
  load(): Promise<DeviceSnapshot>;
@@ -49,7 +49,7 @@ declare class MemoryDeviceStore implements DeviceStore {
49
49
  //#endregion
50
50
  //#region src/access.d.ts
51
51
  /** Stable error categories converted to deliberately terse HTTP responses. */
52
- declare class AccessError extends Error {
52
+ export declare class AccessError extends Error {
53
53
  readonly status: number;
54
54
  readonly code: string;
55
55
  constructor(status: number, code: string);
@@ -105,7 +105,7 @@ interface DeviceSummary {
105
105
  readonly revokedAt?: number;
106
106
  }
107
107
  /** Fixed-window limiter whose attacker-controlled key table is itself bounded. */
108
- declare class BoundedRateLimiter {
108
+ export declare class BoundedRateLimiter {
109
109
  private readonly limit;
110
110
  private readonly windowMs;
111
111
  private readonly maximumKeys;
@@ -117,7 +117,7 @@ declare class BoundedRateLimiter {
117
117
  get size(): number;
118
118
  }
119
119
  /** Pairing, persistent-device, short-Session, revocation, and CSRF state machine. */
120
- declare class AccessController {
120
+ export declare class AccessController {
121
121
  private readonly store;
122
122
  private readonly options;
123
123
  private readonly now;
@@ -194,23 +194,23 @@ interface AuthoritySpec {
194
194
  readonly port?: number;
195
195
  }
196
196
  /** Parse and canonicalize one IPv4 or IPv6 CIDR. */
197
- declare function parseCidr(source: string): ParsedCidr;
197
+ export declare function parseCidr(source: string): ParsedCidr;
198
198
  /** Whether a directly connected socket address belongs to at least one allowed CIDR. */
199
- declare function addressAllowed(address: string | undefined, cidrs: readonly ParsedCidr[]): boolean;
199
+ export declare function addressAllowed(address: string | undefined, cidrs: readonly ParsedCidr[]): boolean;
200
200
  /** Whether an IP literal is loopback and therefore eligible for HTTP-only development. */
201
- declare function isLoopbackAddress(address: string): boolean;
201
+ export declare function isLoopbackAddress(address: string): boolean;
202
202
  /**
203
203
  * Whether a dotted-quad IPv4 literal is globally routable and therefore usable
204
204
  * as a public VPS / remote HTTPS endpoint. Rejects documentation addresses such
205
205
  * as 203.0.113.10 alongside private, shared, and reserved space.
206
206
  */
207
- declare function isGloballyRoutableIpv4(address: string): boolean;
207
+ export declare function isGloballyRoutableIpv4(address: string): boolean;
208
208
  /** Parse a bare host or host:port authority without accepting URL components. */
209
- declare function parseAuthority(source: string): AuthoritySpec;
209
+ export declare function parseAuthority(source: string): AuthoritySpec;
210
210
  /** Resolve an authority against the actual listener port. */
211
- declare function resolveAuthority(spec: AuthoritySpec, listenerPort: number): string;
211
+ export declare function resolveAuthority(spec: AuthoritySpec, listenerPort: number): string;
212
212
  /** Exact Host/Origin/CIDR policy for the directly exposed listener. */
213
- declare class RequestTrustPolicy {
213
+ export declare class RequestTrustPolicy {
214
214
  readonly cidrs: readonly ParsedCidr[];
215
215
  readonly authorities: ReadonlySet<string>;
216
216
  readonly origins: ReadonlySet<string>;
@@ -328,11 +328,11 @@ interface ResolvedGatewayConfig {
328
328
  readonly maxRateLimitKeys: number;
329
329
  }
330
330
  /** Loader-facing defaults; {@link parseGatewayConfig} enforces cross-field security rules. */
331
- declare const Config: z<PluginConfig>;
331
+ export declare const Config: z<PluginConfig>;
332
332
  /** Resolve the hidden runtime-control file independently from gateway configuration. */
333
- declare function parseControlFile(value: unknown): string;
333
+ export declare function parseControlFile(value: unknown): string;
334
334
  /** Parse configuration and reject unsafe topology, credential, and resource combinations. */
335
- declare function parseGatewayConfig(raw: unknown): ResolvedGatewayConfig;
335
+ export declare function parseGatewayConfig(raw: unknown): ResolvedGatewayConfig;
336
336
  //#endregion
337
337
  //#region src/control.d.ts
338
338
  /** Versioned durable preference for the resident mobile-access runtime. */
@@ -350,9 +350,9 @@ interface MobileAccessRuntime {
350
350
  close(): Promise<void>;
351
351
  }
352
352
  /** Validate control state loaded across the filesystem boundary. */
353
- declare function parseMobileAccessControlState(value: unknown): MobileAccessControlState;
353
+ export declare function parseMobileAccessControlState(value: unknown): MobileAccessControlState;
354
354
  /** Atomic JSON store whose absent-file state comes from the installation-time default. */
355
- declare class JsonMobileAccessControlStore implements MobileAccessControlStore {
355
+ export declare class JsonMobileAccessControlStore implements MobileAccessControlStore {
356
356
  private readonly file;
357
357
  private readonly initiallyEnabled;
358
358
  constructor(file: string, initiallyEnabled: boolean);
@@ -362,7 +362,7 @@ declare class JsonMobileAccessControlStore implements MobileAccessControlStore {
362
362
  save(state: MobileAccessControlState): Promise<void>;
363
363
  }
364
364
  /** Serialized persistent lifecycle for the gateway behind the always-loaded Cordis entry. */
365
- declare class MobileAccessGatewayController {
365
+ export declare class MobileAccessGatewayController {
366
366
  private readonly store;
367
367
  private readonly startRuntime;
368
368
  private runtime;
@@ -386,18 +386,18 @@ declare class MobileAccessGatewayController {
386
386
  //#endregion
387
387
  //#region src/websocket-paths.d.ts
388
388
  /** Cap the admin-approved extra WebSocket upgrade paths (exact pathnames). */
389
- declare const MAX_EXTRA_WEBSOCKET_PATHS = 16;
390
- declare const MAX_WEBSOCKET_PATH_LENGTH = 256;
389
+ export declare const MAX_EXTRA_WEBSOCKET_PATHS = 16;
390
+ export declare const MAX_WEBSOCKET_PATH_LENGTH = 256;
391
391
  /**
392
392
  * Validate one exact pathname for proxying. Query strings are matched at
393
393
  * upgrade time, so only the pathname is stored. Rejects anything the
394
394
  * gateway cannot match exactly.
395
395
  */
396
- declare function validateWebSocketPath(value: unknown): string;
396
+ export declare function validateWebSocketPath(value: unknown): string;
397
397
  /** Validate a whole replacement list all-or-nothing; duplicates collapse. */
398
- declare function normalizeWebSocketPaths(value: unknown): string[];
398
+ export declare function normalizeWebSocketPaths(value: unknown): string[];
399
399
  /** Cap remembered rejected upgrade paths offered for one-click approval. */
400
- declare const MAX_BLOCKED_UPGRADE_PATHS = 32;
400
+ export declare const MAX_BLOCKED_UPGRADE_PATHS = 32;
401
401
  interface BlockedUpgradePathEntry {
402
402
  readonly path: string;
403
403
  readonly attempts: number;
@@ -410,13 +410,13 @@ interface BlockedUpgradePathEntry {
410
410
  * Bounded and newest-first; a restart clears it (attempts reappear on
411
411
  * the next blocked handshake).
412
412
  */
413
- declare class BlockedUpgradePathLog {
413
+ export declare class BlockedUpgradePathLog {
414
414
  private readonly entries;
415
415
  record(pathname: string): void;
416
416
  report(): BlockedUpgradePathEntry[];
417
417
  }
418
418
  /** File-backed store shared by every gateway instance (LAN and remote). */
419
- declare class WebSocketPathStore {
419
+ export declare class WebSocketPathStore {
420
420
  private readonly file;
421
421
  private paths;
422
422
  private loaded;
@@ -431,7 +431,7 @@ declare class WebSocketPathStore {
431
431
  //#endregion
432
432
  //#region src/extensions.d.ts
433
433
  /** Maximum sizes enforced at the local-extension filesystem boundary. */
434
- declare const EXTENSION_LIMITS: Readonly<{
434
+ export declare const EXTENSION_LIMITS: Readonly<{
435
435
  manifest: number;
436
436
  script: number;
437
437
  css: number;
@@ -441,7 +441,7 @@ declare const EXTENSION_LIMITS: Readonly<{
441
441
  assetDepth: 8;
442
442
  }>;
443
443
  /** A controlled business failure returned by an extension action or route. */
444
- declare class MobileExtensionError extends Error {
444
+ export declare class MobileExtensionError extends Error {
445
445
  readonly code: string;
446
446
  readonly status: number;
447
447
  constructor(code: string, message: string, status?: number);
@@ -533,11 +533,11 @@ interface ActiveLocalExtension {
533
533
  readonly digest: string;
534
534
  }
535
535
  /** Validate a stable extension id. */
536
- declare function assertExtensionId(value: unknown): string;
536
+ export declare function assertExtensionId(value: unknown): string;
537
537
  /** Validate a manifest from JSON or a plugin definition. */
538
- declare function parseExtensionManifest(value: unknown): LocalExtensionManifest;
538
+ export declare function parseExtensionManifest(value: unknown): LocalExtensionManifest;
539
539
  /** Host registry and service consumed by both npm plugins and local extensions. */
540
- declare class MobileAccessService extends Service {
540
+ export declare class MobileAccessService extends Service {
541
541
  private readonly registered;
542
542
  private readonly local;
543
543
  private readonly retired;
@@ -592,13 +592,13 @@ declare class MobileAccessService extends Service {
592
592
  private retire;
593
593
  }
594
594
  /** Construct the service in a Cordis plugin without importing DSH internals. */
595
- declare function createMobileAccessService(ctx: Context): MobileAccessService;
595
+ export declare function createMobileAccessService(ctx: Context): MobileAccessService;
596
596
  //#endregion
597
597
  //#region src/gateway.d.ts
598
598
  /** Rewrite the dedicated mobile graph; exclusions are opt-in and leave stock DSH unchanged. */
599
- declare function rewriteMobileIndex(html: string, excludedClientModules?: readonly string[]): string;
599
+ export declare function rewriteMobileIndex(html: string, excludedClientModules?: readonly string[]): string;
600
600
  /** Authenticated TLS edge in front of the ordinary loopback-only DSH Web server. */
601
- declare class MobileAccessGateway {
601
+ export declare class MobileAccessGateway {
602
602
  readonly config: ResolvedGatewayConfig;
603
603
  private readonly extensions?;
604
604
  private readonly upstreamAuthenticatedUrl?;
@@ -773,13 +773,13 @@ declare class MobileAccessGateway {
773
773
  }
774
774
  //#endregion
775
775
  //#region src/http-security.d.ts
776
- declare const DEVICE_COOKIE = "dsh_ma_device";
777
- declare const SESSION_COOKIE = "dsh_ma_session";
778
- declare const CSRF_COOKIE = "dsh_ma_csrf";
779
- declare const CSRF_HEADER = "x-dsh-mobile-csrf";
780
- declare const LOCAL_ADMIN_PREFIX = "/api/mobile-access";
781
- declare const AUTH_PREFIX = "/mobile-access";
782
- declare const WS_PATHS: Set<string>;
776
+ export declare const DEVICE_COOKIE = "dsh_ma_device";
777
+ export declare const SESSION_COOKIE = "dsh_ma_session";
778
+ export declare const CSRF_COOKIE = "dsh_ma_csrf";
779
+ export declare const CSRF_HEADER = "x-dsh-mobile-csrf";
780
+ export declare const LOCAL_ADMIN_PREFIX = "/api/mobile-access";
781
+ export declare const AUTH_PREFIX = "/mobile-access";
782
+ export declare const WS_PATHS: Set<string>;
783
783
  //#endregion
784
784
  //#region src/frp-component.d.ts
785
785
  interface FrpArtifact {
@@ -792,7 +792,7 @@ interface FrpArtifact {
792
792
  readonly executableName: string;
793
793
  }
794
794
  /** Pinned official FRP release metadata for supported desktop targets. */
795
- declare const FRP_COMPONENT_RELEASES: Readonly<Record<string, FrpArtifact>>;
795
+ export declare const FRP_COMPONENT_RELEASES: Readonly<Record<string, FrpArtifact>>;
796
796
  /** Public, credential-free description of the managed FRP client. */
797
797
  interface FrpComponentStatus {
798
798
  readonly supported: boolean;
@@ -814,7 +814,7 @@ interface FrpComponentManagerOptions {
814
814
  readonly inspectExecutable?: (executable: string) => Promise<string>;
815
815
  }
816
816
  /** Owns the optional official frpc binary inside the DSH Mobile state directory. */
817
- declare class FrpComponentManager {
817
+ export declare class FrpComponentManager {
818
818
  readonly executable: string;
819
819
  readonly componentRoot: string;
820
820
  readonly componentStorage: string;
@@ -842,13 +842,13 @@ declare class FrpComponentManager {
842
842
  //#endregion
843
843
  //#region src/frp-template.d.ts
844
844
  /** Loopback-only HTTP vhost port used between Caddy and frps. */
845
- declare const FRP_VHOST_HTTP_PORT = 7080;
845
+ export declare const FRP_VHOST_HTTP_PORT = 7080;
846
846
  /** Caddy snippet owned entirely by DSH Mobile; the main Caddyfile only imports it. */
847
- declare const FRP_CADDY_SNIPPET_PATH = "/etc/caddy/dsh-mobile-dsh.caddy";
847
+ export declare const FRP_CADDY_SNIPPET_PATH = "/etc/caddy/dsh-mobile-dsh.caddy";
848
848
  /** First line of the owned snippet; also the legacy whole-file marker. */
849
- declare const FRP_CADDY_SNIPPET_MARKER = "# Managed by DSH Mobile - snippet, safe to delete";
849
+ export declare const FRP_CADDY_SNIPPET_MARKER = "# Managed by DSH Mobile - snippet, safe to delete";
850
850
  /** Exact line the main Caddyfile must contain (uncommented) for the site to load. */
851
- declare const FRP_CADDY_IMPORT_LINE = "import /etc/caddy/dsh-mobile-dsh.caddy";
851
+ export declare const FRP_CADDY_IMPORT_LINE = "import /etc/caddy/dsh-mobile-dsh.caddy";
852
852
  /**
853
853
  * Entry TLS mode for the FRP channel.
854
854
  *
@@ -877,7 +877,7 @@ interface CaddySiteOptions {
877
877
  * signature) or a full {@link CaddySiteOptions} object, so existing callers keep
878
878
  * working unchanged.
879
879
  */
880
- declare function createCaddySite(publicHost: string, options?: CaddySiteOptions | string): string;
880
+ export declare function createCaddySite(publicHost: string, options?: CaddySiteOptions | string): string;
881
881
  /**
882
882
  * Build the only supported frps config and Caddy snippet from validated user inputs.
883
883
  *
@@ -885,15 +885,15 @@ declare function createCaddySite(publicHost: string, options?: CaddySiteOptions
885
885
  * passes the user's real vhost port, and `self-signed` is rejected because that
886
886
  * mode publishes a raw TCP proxy instead of an HTTP vhost.
887
887
  */
888
- declare function createRestrictedFrpServerTemplate(serverPort: number, token: string, publicOrigin: string, options?: CaddySiteOptions): string;
888
+ export declare function createRestrictedFrpServerTemplate(serverPort: number, token: string, publicOrigin: string, options?: CaddySiteOptions): string;
889
889
  //#endregion
890
890
  //#region src/frp-config.d.ts
891
891
  /** How the restricted FRP channel is provisioned on the VPS. */
892
892
  type FrpMode = 'deploy' | 'attach';
893
893
  /** Public entry port used by the self-signed TCP passthrough (never 443 by requirement). */
894
- declare const FRP_DEFAULT_PUBLIC_PORT = 33080;
894
+ export declare const FRP_DEFAULT_PUBLIC_PORT = 33080;
895
895
  /** Ports owned by other DSH Mobile listeners; the public entry may never reuse them. */
896
- declare const FRP_RESERVED_PORTS: readonly number[];
896
+ export declare const FRP_RESERVED_PORTS: readonly number[];
897
897
  /** Credentials and endpoints required by the restricted FRP provider. */
898
898
  interface FrpSettings {
899
899
  readonly version: 1;
@@ -932,31 +932,31 @@ interface FrpConfigurationStatus {
932
932
  readonly publicPort?: number;
933
933
  }
934
934
  /** Validate the FRP server hostname or IP address. */
935
- declare function validateFrpServerAddress(value: unknown): string;
935
+ export declare function validateFrpServerAddress(value: unknown): string;
936
936
  /** Validate the FRP control port. */
937
- declare function validateFrpServerPort(value: unknown): number;
937
+ export declare function validateFrpServerPort(value: unknown): number;
938
938
  /** Validate a high-entropy FRP token before durable storage. */
939
- declare function validateFrpToken(value: unknown): string;
939
+ export declare function validateFrpToken(value: unknown): string;
940
940
  /** Validate the public HTTPS origin used by Caddy and Android pairing. */
941
- declare function validateFrpPublicOrigin(value: unknown): string;
941
+ export declare function validateFrpPublicOrigin(value: unknown): string;
942
942
  /** Validate the provisioning mode. */
943
- declare function validateFrpMode(value: unknown): FrpMode;
943
+ export declare function validateFrpMode(value: unknown): FrpMode;
944
944
  /** Validate the entry TLS mode. */
945
- declare function validateFrpEntryTls(value: unknown): FrpEntryTls;
945
+ export declare function validateFrpEntryTls(value: unknown): FrpEntryTls;
946
946
  /** Validate the loopback vhost port of the target frps. */
947
- declare function validateFrpVhostHttpPort(value: unknown): number;
947
+ export declare function validateFrpVhostHttpPort(value: unknown): number;
948
948
  /** Validate the public entry port of the self-signed TCP proxy. */
949
- declare function validateFrpPublicPort(value: unknown): number;
949
+ export declare function validateFrpPublicPort(value: unknown): number;
950
950
  /** Effective provisioning mode; an absent field keeps the upstream behaviour. */
951
- declare function resolveFrpMode(settings: FrpSettings): FrpMode;
951
+ export declare function resolveFrpMode(settings: FrpSettings): FrpMode;
952
952
  /** Effective entry TLS mode; an absent field keeps the upstream behaviour. */
953
- declare function resolveFrpEntryTls(settings: FrpSettings): FrpEntryTls;
953
+ export declare function resolveFrpEntryTls(settings: FrpSettings): FrpEntryTls;
954
954
  /** Effective loopback vhost port; an absent field keeps the upstream behaviour. */
955
- declare function resolveFrpVhostHttpPort(settings: FrpSettings): number;
955
+ export declare function resolveFrpVhostHttpPort(settings: FrpSettings): number;
956
956
  /** Effective public entry port of the self-signed passthrough. */
957
- declare function resolveFrpPublicPort(settings: FrpSettings): number;
957
+ export declare function resolveFrpPublicPort(settings: FrpSettings): number;
958
958
  /** True when the gateway terminates TLS itself behind a raw frps TCP proxy. */
959
- declare function isFrpSelfSignedIngress(settings: FrpSettings): boolean;
959
+ export declare function isFrpSelfSignedIngress(settings: FrpSettings): boolean;
960
960
  /**
961
961
  * Parse FRP settings at the loopback request and filesystem boundaries.
962
962
  *
@@ -967,16 +967,16 @@ declare function isFrpSelfSignedIngress(settings: FrpSettings): boolean;
967
967
  * attach mode with a public-CA entry must state the user's real vhost port —
968
968
  * silently assuming 7080 would disable the plaintext-exposure gate.
969
969
  */
970
- declare function parseFrpSettings(value: unknown): FrpSettings;
970
+ export declare function parseFrpSettings(value: unknown): FrpSettings;
971
971
  /**
972
972
  * Merge a partial VPS request body with the saved configuration so a blank
973
973
  * field keeps its saved value ("已保存时可留空"). Every merged field is still
974
974
  * validated; with nothing saved and nothing supplied the result reports a
975
975
  * missing configuration instead of silently deploying blanks.
976
976
  */
977
- declare function mergeSavedFrpSettings(partial: Readonly<Record<string, unknown>>, saved: FrpSettings | undefined): FrpSettings;
977
+ export declare function mergeSavedFrpSettings(partial: Readonly<Record<string, unknown>>, saved: FrpSettings | undefined): FrpSettings;
978
978
  /** Merge a VPS target (address and control port) with the saved configuration. */
979
- declare function mergeSavedFrpTarget(partial: Readonly<Record<string, unknown>>, saved: FrpSettings | undefined): {
979
+ export declare function mergeSavedFrpTarget(partial: Readonly<Record<string, unknown>>, saved: FrpSettings | undefined): {
980
980
  readonly serverAddress: string;
981
981
  readonly serverPort: number;
982
982
  };
@@ -992,14 +992,14 @@ declare function mergeSavedFrpTarget(partial: Readonly<Record<string, unknown>>,
992
992
  * from {@link frpProxyName}; this constant only keeps the exported API and the
993
993
  * byte-for-byte compatibility test working for legacy callers.
994
994
  */
995
- declare const FRP_DEFAULT_PROXY_NAME = "dsh-mobile";
995
+ export declare const FRP_DEFAULT_PROXY_NAME = "dsh-mobile";
996
996
  /**
997
997
  * Validate a proxy name for the generated frpc configuration.
998
998
  *
999
999
  * frps accepts one proxy per name on the whole server, so the name must be a
1000
1000
  * single safe token: no whitespace, no quotes, no path or bracket characters.
1001
1001
  */
1002
- declare function validateFrpProxyName(value: unknown): string;
1002
+ export declare function validateFrpProxyName(value: unknown): string;
1003
1003
  /**
1004
1004
  * Proxy name for one DSH installation.
1005
1005
  *
@@ -1008,7 +1008,7 @@ declare function validateFrpProxyName(value: unknown): string;
1008
1008
  * same name across restarts (so its own stale registration is the only possible
1009
1009
  * conflict, and that one expires with the frps heartbeat).
1010
1010
  */
1011
- declare function frpProxyName(instanceId: string): string;
1011
+ export declare function frpProxyName(instanceId: string): string;
1012
1012
  /**
1013
1013
  * Build the single-purpose frpc configuration for the current loopback gateway.
1014
1014
  *
@@ -1019,11 +1019,11 @@ declare function frpProxyName(instanceId: string): string;
1019
1019
  * `proxyName` defaults to the legacy fixed name only for legacy callers; the
1020
1020
  * provider and the attach preview always pass {@link frpProxyName}.
1021
1021
  */
1022
- declare function createFrpcToml(settings: FrpSettings, localPort: number, proxyName?: string): string;
1022
+ export declare function createFrpcToml(settings: FrpSettings, localPort: number, proxyName?: string): string;
1023
1023
  /** Build the matching restricted frps and Caddy templates for one VPS. */
1024
- declare function createFrpServerTemplate(settings: FrpSettings): string;
1024
+ export declare function createFrpServerTemplate(settings: FrpSettings): string;
1025
1025
  /** Owns private FRP settings and generation-specific frpc configuration. */
1026
- declare class FrpConfigStore {
1026
+ export declare class FrpConfigStore {
1027
1027
  readonly stateRoot: string;
1028
1028
  readonly settingsFile: string;
1029
1029
  readonly runtimeConfigFile: string;
@@ -1060,13 +1060,13 @@ declare class FrpConfigStore {
1060
1060
  //#endregion
1061
1061
  //#region src/frp-attach.d.ts
1062
1062
  /** Default proof path used to confirm the public entry answered from this computer. */
1063
- declare const FRP_ATTACH_DISCOVERY_PATH = "/mobile-access/discovery";
1063
+ export declare const FRP_ATTACH_DISCOVERY_PATH = "/mobile-access/discovery";
1064
1064
  /** Declaration printed above the VPS half of an attach template. */
1065
- declare const FRP_ATTACH_VPS_DECLARATION: string;
1065
+ export declare const FRP_ATTACH_VPS_DECLARATION: string;
1066
1066
  /** Declaration printed above the local half of an attach template. */
1067
- declare const FRP_ATTACH_LOCAL_DECLARATION = "# 本机只写入 frpc.toml 并启动 frpc:不安装、不改动本机 frps,也不改动 DSH 自身配置。";
1067
+ export declare const FRP_ATTACH_LOCAL_DECLARATION = "# 本机只写入 frpc.toml 并启动 frpc:不安装、不改动本机 frps,也不改动 DSH 自身配置。";
1068
1068
  /** Declaration for the self-signed passthrough, which keeps its CA on this computer. */
1069
- declare const FRP_ATTACH_SELF_SIGNED_DECLARATION: string;
1069
+ export declare const FRP_ATTACH_SELF_SIGNED_DECLARATION: string;
1070
1070
  /** Optional inputs for attach artefacts; every field falls back to the validated settings. */
1071
1071
  interface FrpAttachOptions {
1072
1072
  readonly vhostHttpPort?: number;
@@ -1106,7 +1106,7 @@ interface FrpAttachTemplate {
1106
1106
  * artefact is produced. Attach never installs frps, so it must know the user's
1107
1107
  * real vhost port (unless the self-signed passthrough removes the vhost entirely).
1108
1108
  */
1109
- declare function validateAttachSettings(settings: FrpSettings, options?: FrpAttachOptions): void;
1109
+ export declare function validateAttachSettings(settings: FrpSettings, options?: FrpAttachOptions): void;
1110
1110
  /** Shared VPS-side inputs of both the copied runbook and the panel plan. */
1111
1111
  interface FrpAttachVpsParts {
1112
1112
  readonly publicHost: string;
@@ -1120,7 +1120,7 @@ interface FrpAttachVpsParts {
1120
1120
  * Derive every VPS-side value once so the copied runbook and the panel plan can
1121
1121
  * never drift apart.
1122
1122
  */
1123
- declare function frpAttachVpsParts(settings: FrpSettings, options?: FrpAttachOptions): FrpAttachVpsParts;
1123
+ export declare function frpAttachVpsParts(settings: FrpSettings, options?: FrpAttachOptions): FrpAttachVpsParts;
1124
1124
  /**
1125
1125
  * Build the attach artefact for an existing frps.
1126
1126
  *
@@ -1130,9 +1130,9 @@ declare function frpAttachVpsParts(settings: FrpSettings, options?: FrpAttachOpt
1130
1130
  * contains the generated frpc.toml plus its `frpc verify` self-check. Neither
1131
1131
  * half installs, rewrites, or restarts the user's frps.
1132
1132
  */
1133
- declare function createFrpAttachTemplateParts(settings: FrpSettings, options?: FrpAttachOptions): FrpAttachTemplate;
1133
+ export declare function createFrpAttachTemplateParts(settings: FrpSettings, options?: FrpAttachOptions): FrpAttachTemplate;
1134
1134
  /** Combined attach artefact, ready for the clipboard. */
1135
- declare function createFrpAttachTemplate(settings: FrpSettings, options?: FrpAttachOptions): string;
1135
+ export declare function createFrpAttachTemplate(settings: FrpSettings, options?: FrpAttachOptions): string;
1136
1136
  //#endregion
1137
1137
  //#region src/frp-attach-plan.d.ts
1138
1138
  /** Stable step identifiers; the panel maps each one to a translated title. */
@@ -1171,11 +1171,11 @@ interface FrpAttachPlan {
1171
1171
  * filesystem write: the caller renders or copies the steps and the local frpc
1172
1172
  * configuration is written by the ordinary provider lifecycle.
1173
1173
  */
1174
- declare function createFrpAttachPlan(settings: FrpSettings, options?: FrpAttachOptions): FrpAttachPlan;
1174
+ export declare function createFrpAttachPlan(settings: FrpSettings, options?: FrpAttachOptions): FrpAttachPlan;
1175
1175
  //#endregion
1176
1176
  //#region src/cert-renewal.d.ts
1177
1177
  /** Days left below which the entry certificate is reported as expiring. */
1178
- declare const CERT_EXPIRING_DAYS = 2;
1178
+ export declare const CERT_EXPIRING_DAYS = 2;
1179
1179
  /** Read-only lifetime verdict for one certificate; never mutates or renews anything. */
1180
1180
  interface CertRenewalStatus {
1181
1181
  readonly state: 'ok' | 'expiring' | 'expired' | 'unknown';
@@ -1187,14 +1187,14 @@ interface CertRenewalStatus {
1187
1187
  readonly errorCode?: string;
1188
1188
  }
1189
1189
  /** Evaluate one `notAfter` timestamp against the current clock. */
1190
- declare function evaluateCertificateLifetime(notAfter: number, now?: number): CertRenewalStatus;
1190
+ export declare function evaluateCertificateLifetime(notAfter: number, now?: number): CertRenewalStatus;
1191
1191
  /**
1192
1192
  * Read one PEM certificate from disk and report only its lifetime.
1193
1193
  *
1194
1194
  * A missing or unreadable file yields `unknown` with the stable
1195
1195
  * `frp_attach_cert_unknown` code so the panel can explain how to re-issue it.
1196
1196
  */
1197
- declare function readCertificateRenewal(file: string, now?: number): Promise<CertRenewalStatus>;
1197
+ export declare function readCertificateRenewal(file: string, now?: number): Promise<CertRenewalStatus>;
1198
1198
  /**
1199
1199
  * Ask a live TLS endpoint for its leaf certificate and report its lifetime.
1200
1200
  *
@@ -1202,7 +1202,7 @@ declare function readCertificateRenewal(file: string, now?: number): Promise<Cer
1202
1202
  * an endpoint whose trust anchor is already pinned elsewhere, and a self-signed
1203
1203
  * leaf is the expected answer for the passthrough entry.
1204
1204
  */
1205
- declare function probeOriginCertificate(host: string, port: number, timeoutMs?: number): Promise<CertRenewalStatus>;
1205
+ export declare function probeOriginCertificate(host: string, port: number, timeoutMs?: number): Promise<CertRenewalStatus>;
1206
1206
  //#endregion
1207
1207
  //#region src/frp-ingress.d.ts
1208
1208
  /** Private files owned by the self-signed FRP ingress. */
@@ -1242,7 +1242,7 @@ interface FrpIngressSelfCheck {
1242
1242
  };
1243
1243
  }
1244
1244
  /** Private ingress directory, always a sibling of the remote device file. */
1245
- declare function frpIngressPaths(stateFile: string): FrpIngressPaths;
1245
+ export declare function frpIngressPaths(stateFile: string): FrpIngressPaths;
1246
1246
  /**
1247
1247
  * Materialize the CA and leaf the gateway terminates TLS with.
1248
1248
  *
@@ -1250,14 +1250,14 @@ declare function frpIngressPaths(stateFile: string): FrpIngressPaths;
1250
1250
  * replaced silently. The leaf is re-signed when expiring or no longer valid for
1251
1251
  * the public IPv4, and the running gateway reloads it after a renewal check.
1252
1252
  */
1253
- declare function ensureFrpIngressCertificate(settings: FrpSettings, stateFile: string, now?: number, expectedCaFingerprint?: string): Promise<FrpIngressCertificate>;
1253
+ export declare function ensureFrpIngressCertificate(settings: FrpSettings, stateFile: string, now?: number, expectedCaFingerprint?: string): Promise<FrpIngressCertificate>;
1254
1254
  /**
1255
1255
  * Build the read-only self-check payload shown in the desktop panel.
1256
1256
  *
1257
1257
  * No secret ever leaves this function: the CA is reported by fingerprint only,
1258
1258
  * and the token is never read.
1259
1259
  */
1260
- declare function frpIngressSelfCheck(settings: FrpSettings, stateFile: string): Promise<FrpIngressSelfCheck>;
1260
+ export declare function frpIngressSelfCheck(settings: FrpSettings, stateFile: string): Promise<FrpIngressSelfCheck>;
1261
1261
  //#endregion
1262
1262
  //#region src/managed-setup.d.ts
1263
1263
  /** One host a server leaf must be valid for: an IP literal, a DNS name, or both. */
@@ -1284,7 +1284,7 @@ interface ServerCertificateAuthority {
1284
1284
  * required for console addresses (`type: 7`), DNS entries (`type: 2`) cover named
1285
1285
  * hosts; the Android client accepts either through its pinned CA.
1286
1286
  */
1287
- declare function issueServerCertificate(authority: ServerCertificateAuthority, target: ServerCertificateTarget, output: ServerCertificateFiles, lifetimeDays?: number): Promise<void>;
1287
+ export declare function issueServerCertificate(authority: ServerCertificateAuthority, target: ServerCertificateTarget, output: ServerCertificateFiles, lifetimeDays?: number): Promise<void>;
1288
1288
  //#endregion
1289
1289
  //#region src/remote.d.ts
1290
1290
  /** Remote transports supported by the desktop plugin and Android client. */
@@ -1314,11 +1314,11 @@ interface RemoteProviderState {
1314
1314
  readonly version: 1;
1315
1315
  readonly provider: RemoteProvider;
1316
1316
  }
1317
- declare const REMOTE_PROVIDERS: readonly RemoteProvider[];
1317
+ export declare const REMOTE_PROVIDERS: readonly RemoteProvider[];
1318
1318
  /** Validate the provider selection loaded across the filesystem boundary. */
1319
- declare function parseRemoteProviderState(value: unknown): RemoteProviderState;
1319
+ export declare function parseRemoteProviderState(value: unknown): RemoteProviderState;
1320
1320
  /** Atomic selection store whose absent-file state uses the configured default. */
1321
- declare class JsonRemoteProviderStore {
1321
+ export declare class JsonRemoteProviderStore {
1322
1322
  private readonly file;
1323
1323
  private readonly defaultProvider;
1324
1324
  constructor(file: string, defaultProvider: RemoteProvider);
@@ -1326,7 +1326,7 @@ declare class JsonRemoteProviderStore {
1326
1326
  save(state: RemoteProviderState): Promise<void>;
1327
1327
  }
1328
1328
  /** Resolve the first-run provider without letting environment values bypass validation. */
1329
- declare function configuredRemoteProvider(environment: NodeJS.ProcessEnv): RemoteProvider;
1329
+ export declare function configuredRemoteProvider(environment: NodeJS.ProcessEnv): RemoteProvider;
1330
1330
  //#endregion
1331
1331
  //#region src/frp.d.ts
1332
1332
  /** Product-facing states for the restricted self-hosted FRP transport. */
@@ -1395,7 +1395,7 @@ interface FrpControllerOptions {
1395
1395
  readonly retryIntervalMs?: number;
1396
1396
  }
1397
1397
  /** Owns frpc, its generation-specific configuration, and the remote gateway. */
1398
- declare class FrpController implements RemoteProviderController {
1398
+ export declare class FrpController implements RemoteProviderController {
1399
1399
  private readonly options;
1400
1400
  private enabled;
1401
1401
  private initialized;
@@ -1446,7 +1446,7 @@ declare class FrpController implements RemoteProviderController {
1446
1446
  }
1447
1447
  //#endregion
1448
1448
  //#region src/origin-proxy-config.d.ts
1449
- declare const DEFAULT_ORIGIN_LISTEN_PORT = 3444;
1449
+ export declare const DEFAULT_ORIGIN_LISTEN_PORT = 3444;
1450
1450
  /** A private HTTP listener behind a user-managed HTTPS reverse proxy. */
1451
1451
  interface OriginSettings {
1452
1452
  readonly version: 1;
@@ -1467,16 +1467,16 @@ interface OriginConfigurationStatus {
1467
1467
  readonly errorCode?: string;
1468
1468
  }
1469
1469
  /** Require a public HTTPS origin; custom external ports are supported. */
1470
- declare function validateOriginPublicOrigin(value: unknown): string;
1470
+ export declare function validateOriginPublicOrigin(value: unknown): string;
1471
1471
  /** Bind only one explicit loopback or RFC1918 IPv4 interface, never all interfaces. */
1472
- declare function validateOriginListenHost(value: unknown): string;
1473
- declare function validateOriginListenPort(value: unknown): number;
1472
+ export declare function validateOriginListenHost(value: unknown): string;
1473
+ export declare function validateOriginListenPort(value: unknown): number;
1474
1474
  /** Authorize direct proxy socket peers, not untrusted forwarded client headers. */
1475
- declare function validateOriginAllowedCidrs(value: unknown, listenHost: string): readonly string[];
1475
+ export declare function validateOriginAllowedCidrs(value: unknown, listenHost: string): readonly string[];
1476
1476
  /** Validate both saved settings and local administrative requests. */
1477
- declare function parseOriginSettings(value: unknown): OriginSettings;
1477
+ export declare function parseOriginSettings(value: unknown): OriginSettings;
1478
1478
  /** Owns only origin settings; shared paired-device storage is never removed. */
1479
- declare class OriginConfigStore {
1479
+ export declare class OriginConfigStore {
1480
1480
  readonly stateRoot: string;
1481
1481
  readonly settingsFile: string;
1482
1482
  private settingsValue;
@@ -1506,7 +1506,7 @@ interface OriginControllerOptions {
1506
1506
  readonly onStatus?: (status: OriginStatus) => void;
1507
1507
  }
1508
1508
  /** Owns an authenticated HTTP gateway, with no tunnel process or public network probes. */
1509
- declare class OriginController implements RemoteProviderController {
1509
+ export declare class OriginController implements RemoteProviderController {
1510
1510
  private readonly options;
1511
1511
  private enabled;
1512
1512
  private initialized;
@@ -1554,7 +1554,7 @@ interface CloudflaredArtifact {
1554
1554
  * {@link CLOUDFLARED_COMPONENT_RELEASES} by platform and architecture; this
1555
1555
  * alias preserves the original Windows x64 entry for existing callers.
1556
1556
  */
1557
- declare const CLOUDFLARED_COMPONENT_RELEASE: CloudflaredArtifact;
1557
+ export declare const CLOUDFLARED_COMPONENT_RELEASE: CloudflaredArtifact;
1558
1558
  /**
1559
1559
  * Public, credential-free description of the managed cloudflared component.
1560
1560
  *
@@ -1580,7 +1580,7 @@ interface CloudflaredComponentManagerOptions {
1580
1580
  readonly fetchArtifact?: (url: string, signal: AbortSignal) => Promise<Uint8Array>;
1581
1581
  }
1582
1582
  /** Owns the optional cloudflared binary inside DSH Mobile state. */
1583
- declare class CloudflaredComponentManager {
1583
+ export declare class CloudflaredComponentManager {
1584
1584
  readonly executable: string;
1585
1585
  readonly componentRoot: string;
1586
1586
  readonly componentStorage: string;
@@ -1644,9 +1644,9 @@ interface CloudflaredTunnelStatus {
1644
1644
  * belongs to quick tunnels, and a `cfargotunnel.com` name is the routing target
1645
1645
  * rather than a routable public address.
1646
1646
  */
1647
- declare function validateCloudflaredTunnelHostname(value: unknown): string;
1647
+ export declare function validateCloudflaredTunnelHostname(value: unknown): string;
1648
1648
  /** Validate the stable loopback port Cloudflare's ingress forwards to. */
1649
- declare function validateCloudflaredTunnelPort(value: unknown): number;
1649
+ export declare function validateCloudflaredTunnelPort(value: unknown): number;
1650
1650
  /**
1651
1651
  * Validate a connector token before durable storage.
1652
1652
  *
@@ -1654,17 +1654,17 @@ declare function validateCloudflaredTunnelPort(value: unknown): number;
1654
1654
  * and tunnel secret; the provider passes it through the environment rather than
1655
1655
  * the command line, and it is never returned to any client.
1656
1656
  */
1657
- declare function validateCloudflaredTunnelToken(value: unknown): string;
1657
+ export declare function validateCloudflaredTunnelToken(value: unknown): string;
1658
1658
  /** Parse tunnel settings at the request and filesystem boundaries. */
1659
- declare function parseCloudflaredTunnelSettings(value: unknown): CloudflaredTunnelSettings;
1659
+ export declare function parseCloudflaredTunnelSettings(value: unknown): CloudflaredTunnelSettings;
1660
1660
  /**
1661
1661
  * Merge a partial panel request with the saved named-tunnel settings so a blank
1662
1662
  * field keeps its stored value. The token in particular is write-only, so the
1663
1663
  * panel submits an empty string to mean "keep the existing connector token".
1664
1664
  */
1665
- declare function mergeSavedCloudflaredTunnelSettings(partial: Readonly<Record<string, unknown>>, saved: CloudflaredTunnelSettings | undefined): CloudflaredTunnelSettings;
1665
+ export declare function mergeSavedCloudflaredTunnelSettings(partial: Readonly<Record<string, unknown>>, saved: CloudflaredTunnelSettings | undefined): CloudflaredTunnelSettings;
1666
1666
  /** Owns the private cloudflared tunnel configuration for one DSH installation. */
1667
- declare class CloudflaredTunnelStore {
1667
+ export declare class CloudflaredTunnelStore {
1668
1668
  readonly stateRoot: string;
1669
1669
  readonly settingsFile: string;
1670
1670
  private settingsValue;
@@ -1719,7 +1719,7 @@ interface CloudflaredControllerOptions {
1719
1719
  * as `https://x.trycloudflare.com.evil.test` fails the hostname check instead of
1720
1720
  * being truncated into an accepted origin.
1721
1721
  */
1722
- declare function parseCloudflaredOrigin(line: string): string | undefined;
1722
+ export declare function parseCloudflaredOrigin(line: string): string | undefined;
1723
1723
  /**
1724
1724
  * Whether one cloudflared log line reports an established edge connection.
1725
1725
  *
@@ -1728,7 +1728,7 @@ declare function parseCloudflaredOrigin(line: string): string | undefined;
1728
1728
  * the current and the older wording are accepted; anything else is ignored so a
1729
1729
  * chatty log line cannot be mistaken for readiness.
1730
1730
  */
1731
- declare function isCloudflaredRegistration(line: string): boolean;
1731
+ export declare function isCloudflaredRegistration(line: string): boolean;
1732
1732
  /**
1733
1733
  * Owns an installed cloudflared client and a provider-specific DSH remote gateway.
1734
1734
  *
@@ -1737,7 +1737,7 @@ declare function isCloudflaredRegistration(line: string): boolean;
1737
1737
  * hostname from the tunnel store, forward to the configured loopback port, and
1738
1738
  * learn readiness from the connector's registration line rather than a banner.
1739
1739
  */
1740
- declare class CloudflaredController implements RemoteProviderController {
1740
+ export declare class CloudflaredController implements RemoteProviderController {
1741
1741
  private readonly options;
1742
1742
  private enabled;
1743
1743
  private initialized;
@@ -1830,19 +1830,19 @@ interface TaskEventWatcherOptions {
1830
1830
  readonly onTaskCompleted: (event: TaskCompletionEvent) => void;
1831
1831
  readonly log?: (event: string, fields: Readonly<Record<string, string | number | boolean>>) => void;
1832
1832
  }
1833
- declare const TASK_EVENT_DEBOUNCE_MS = 1000;
1833
+ export declare const TASK_EVENT_DEBOUNCE_MS = 1000;
1834
1834
  /**
1835
1835
  * Subscribe to completed root turns. Subagent turns are skipped so one task
1836
1836
  * announces once, and rapid turn boundaries collapse into a single event.
1837
1837
  * Returns a disposer that also drops pending debounces.
1838
1838
  */
1839
- declare function watchTaskCompletions(ctx: TaskEventContext, options: TaskEventWatcherOptions): () => void;
1839
+ export declare function watchTaskCompletions(ctx: TaskEventContext, options: TaskEventWatcherOptions): () => void;
1840
1840
  /** Receives fanned-out completion events (normally a mobile gateway). */
1841
1841
  interface TaskEventSink {
1842
1842
  broadcastTaskEvent(event: TaskCompletionEvent): void;
1843
1843
  }
1844
1844
  /** One subscription feeding every live gateway; gateways register on start. */
1845
- declare class TaskEventHub {
1845
+ export declare class TaskEventHub {
1846
1846
  private readonly sinks;
1847
1847
  /** Register a sink; returns its disposer. */
1848
1848
  add(sink: TaskEventSink): () => void;
@@ -1863,13 +1863,13 @@ declare module '@deepseek-ai/dsh-llm' {
1863
1863
  }
1864
1864
  }
1865
1865
  /** Stable Cordis plugin name. */
1866
- declare const name = "dsh-mobile";
1866
+ export declare const name = "dsh-mobile";
1867
1867
  /** The stock WebServer serves the control card; Connection authenticates the loopback DSH origin. */
1868
- declare const inject: string[];
1868
+ export declare const inject: string[];
1869
1869
  /** Reuse remote HTTPS policy while binding a separately validated private HTTP origin. */
1870
- declare function originGatewayConfig(template: ResolvedGatewayConfig, settings: OriginSettings, stateFile: string, instanceId: string, listenPort?: number): ResolvedGatewayConfig;
1870
+ export declare function originGatewayConfig(template: ResolvedGatewayConfig, settings: OriginSettings, stateFile: string, instanceId: string, listenPort?: number): ResolvedGatewayConfig;
1871
1871
  /** Mount the resident control route and its optional authenticated LAN gateway. */
1872
- declare function apply(ctx: Context, config: PluginConfig): Promise<void>;
1872
+ export declare function apply(ctx: Context, config: PluginConfig): Promise<void>;
1873
1873
  //#endregion
1874
- export { AUTH_PREFIX, AccessController, type AccessControllerOptions, AccessError, type AuthoritySpec, type BlockedUpgradePathEntry, BlockedUpgradePathLog, BoundedRateLimiter, CERT_EXPIRING_DAYS, CLOUDFLARED_COMPONENT_RELEASE, CSRF_COOKIE, CSRF_HEADER, type CaddySiteOptions, type CertRenewalStatus, CloudflaredComponentManager, type CloudflaredComponentStatus, CloudflaredController, type CloudflaredControllerOptions, type CloudflaredState, type CloudflaredStatus, type CloudflaredTunnelMode, type CloudflaredTunnelSettings, type CloudflaredTunnelStatus, CloudflaredTunnelStore, Config, DEFAULT_ORIGIN_LISTEN_PORT, FRP_VHOST_HTTP_PORT as DEFAULT_VHOST_HTTP_PORT, FRP_VHOST_HTTP_PORT, DEVICE_COOKIE, type DeviceProbeResult, type DeviceSnapshot, type DeviceStore, type DeviceSummary, type DisabledTlsConfig, EXTENSION_LIMITS, FRP_ATTACH_DISCOVERY_PATH, FRP_ATTACH_LOCAL_DECLARATION, FRP_ATTACH_SELF_SIGNED_DECLARATION, FRP_ATTACH_VPS_DECLARATION, FRP_CADDY_IMPORT_LINE, FRP_CADDY_SNIPPET_MARKER, FRP_CADDY_SNIPPET_PATH, FRP_COMPONENT_RELEASES, FRP_DEFAULT_PROXY_NAME, FRP_DEFAULT_PUBLIC_PORT, FRP_RESERVED_PORTS, type FrpAttachOptions, type FrpAttachPlan, type FrpAttachPlanLocal, type FrpAttachPlanStep, type FrpAttachStepId, type FrpAttachTemplate, type FrpAttachVpsParts, FrpComponentManager, type FrpComponentStatus, FrpConfigStore, type FrpConfigurationStatus, FrpController, type FrpControllerOptions, type FrpEntryTls, type FrpIngressCertificate, type FrpIngressPaths, type FrpIngressSelfCheck, type FrpSettings, type FrpState, type FrpStatus, JsonDeviceStore, JsonMobileAccessControlStore, JsonRemoteProviderStore, LOCAL_ADMIN_PREFIX, type LocalExtensionManifest, MAX_BLOCKED_UPGRADE_PATHS, MAX_EXTRA_WEBSOCKET_PATHS, MAX_WEBSOCKET_PATH_LENGTH, MemoryDeviceStore, type MobileAccessControlState, type MobileAccessControlStore, MobileAccessGateway, MobileAccessGatewayController, type MobileAccessService as MobileAccessRegistry, MobileAccessService, type MobileAccessRuntime, type MobileActionContext, type MobileExtensionClientEntry, type MobileExtensionDefinition, MobileExtensionError, type MobileExtensionManifest, type MobileExtensionStatus, type MobileHostAction, type MobileHostRoute, type MobileRouteRequest, type MobileRouteResponse, OriginConfigStore, type OriginConfigurationStatus, OriginController, type OriginControllerOptions, type OriginSettings, type OriginState, type OriginStatus, type PairingResult, type ParsedCidr, type PluginConfig, type ProvidedTlsConfig, REMOTE_PROVIDERS, type RemoteProvider, type RemoteProviderController, type RemoteProviderState, type RemoteProviderStatus, type RenewalResult, RequestTrustPolicy, type ResolvedGatewayConfig, SESSION_COOKIE, type ServerCertificateAuthority, type ServerCertificateFiles, type ServerCertificateTarget, type SessionAuthorization, type SessionEndReason, type StoredDevice, TASK_EVENT_DEBOUNCE_MS, type TaskCompletionEvent, type TaskEventContext, TaskEventHub, type TaskEventSession, type TaskEventSink, type TaskEventWatcherOptions, type TaskTurnEvent, type TlsConfig, WS_PATHS, WebSocketPathStore, addressAllowed, apply, assertExtensionId, configuredRemoteProvider, createCaddySite, createFrpAttachPlan, createFrpAttachTemplate, createFrpAttachTemplateParts, createFrpServerTemplate, createFrpcToml, createMobileAccessService, createRestrictedFrpServerTemplate, ensureFrpIngressCertificate, evaluateCertificateLifetime, frpAttachVpsParts, frpIngressPaths, frpIngressSelfCheck, frpProxyName, inject, isCloudflaredRegistration, isFrpSelfSignedIngress, isGloballyRoutableIpv4, isLoopbackAddress, issueServerCertificate, mergeSavedCloudflaredTunnelSettings, mergeSavedFrpSettings, mergeSavedFrpTarget, name, normalizeWebSocketPaths, originGatewayConfig, parseAuthority, parseCidr, parseCloudflaredOrigin, parseCloudflaredTunnelSettings, parseControlFile, parseDeviceSnapshot, parseExtensionManifest, parseFrpSettings, parseGatewayConfig, parseMobileAccessControlState, parseOriginSettings, parseRemoteProviderState, probeOriginCertificate, readCertificateRenewal, resolveAuthority, resolveFrpEntryTls, resolveFrpMode, resolveFrpPublicPort, resolveFrpVhostHttpPort, rewriteMobileIndex, validateAttachSettings, validateCloudflaredTunnelHostname, validateCloudflaredTunnelPort, validateCloudflaredTunnelToken, validateFrpEntryTls, validateFrpMode, validateFrpProxyName, validateFrpPublicOrigin, validateFrpPublicPort, validateFrpServerAddress, validateFrpServerPort, validateFrpToken, validateFrpVhostHttpPort, validateOriginAllowedCidrs, validateOriginListenHost, validateOriginListenPort, validateOriginPublicOrigin, validateWebSocketPath, watchTaskCompletions };
1874
+ export { type AccessControllerOptions, type AuthoritySpec, type BlockedUpgradePathEntry, type CaddySiteOptions, type CertRenewalStatus, type CloudflaredComponentStatus, type CloudflaredControllerOptions, type CloudflaredState, type CloudflaredStatus, type CloudflaredTunnelMode, type CloudflaredTunnelSettings, type CloudflaredTunnelStatus, FRP_VHOST_HTTP_PORT as DEFAULT_VHOST_HTTP_PORT, type DeviceProbeResult, type DeviceSnapshot, type DeviceStore, type DeviceSummary, type DisabledTlsConfig, type FrpAttachOptions, type FrpAttachPlan, type FrpAttachPlanLocal, type FrpAttachPlanStep, type FrpAttachStepId, type FrpAttachTemplate, type FrpAttachVpsParts, type FrpComponentStatus, type FrpConfigurationStatus, type FrpControllerOptions, type FrpEntryTls, type FrpIngressCertificate, type FrpIngressPaths, type FrpIngressSelfCheck, type FrpSettings, type FrpState, type FrpStatus, type LocalExtensionManifest, type MobileAccessControlState, type MobileAccessControlStore, type MobileAccessService as MobileAccessRegistry, type MobileAccessRuntime, type MobileActionContext, type MobileExtensionClientEntry, type MobileExtensionDefinition, type MobileExtensionManifest, type MobileExtensionStatus, type MobileHostAction, type MobileHostRoute, type MobileRouteRequest, type MobileRouteResponse, type OriginConfigurationStatus, type OriginControllerOptions, type OriginSettings, type OriginState, type OriginStatus, type PairingResult, type ParsedCidr, type PluginConfig, type ProvidedTlsConfig, type RemoteProvider, type RemoteProviderController, type RemoteProviderState, type RemoteProviderStatus, type RenewalResult, type ResolvedGatewayConfig, type ServerCertificateAuthority, type ServerCertificateFiles, type ServerCertificateTarget, type SessionAuthorization, type SessionEndReason, type StoredDevice, type TaskCompletionEvent, type TaskEventContext, type TaskEventSession, type TaskEventSink, type TaskEventWatcherOptions, type TaskTurnEvent, type TlsConfig };
1875
1875
  //# sourceMappingURL=index.d.mts.map