import { z } from "zod"; import { type DeviceFacts } from "./hosts.js"; export declare const SandboxResourcesAskFieldsSchema: z.ZodObject<{ memoryGib: z.ZodOptional>; cpus: z.ZodOptional>; privileged: z.ZodOptional; gpu: z.ZodOptional; }, z.core.$strip>; export declare const SandboxShapeSchema: z.ZodObject<{ memoryGib: z.ZodNullable; cpus: z.ZodNullable; privileged: z.ZodBoolean; gpu: z.ZodBoolean; }, z.core.$strip>; export type SandboxShape = z.infer; export declare const SandboxShapeWhenSchema: z.ZodEnum<{ nextRestart: "nextRestart"; now: "now"; }>; export type SandboxShapeWhen = z.infer; export declare const SandboxResourcesSchema: z.ZodObject<{ memoryBytes: z.ZodOptional; cpus: z.ZodOptional; privileged: z.ZodBoolean; gpu: z.ZodBoolean; hostRuntime: z.ZodArray; overlayRuntime: z.ZodArray; shape: z.ZodOptional; cpus: z.ZodNullable; privileged: z.ZodBoolean; gpu: z.ZodBoolean; }, z.core.$strip>>; desired: z.ZodOptional; cpus: z.ZodNullable; privileged: z.ZodBoolean; gpu: z.ZodBoolean; }, z.core.$strip>>; saved: z.ZodOptional>; cpus: z.ZodOptional>; privileged: z.ZodOptional; gpu: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export type SandboxResources = z.infer; export declare const SandboxResourcesAskSchema: z.ZodObject<{ memoryGib: z.ZodOptional>; cpus: z.ZodOptional>; privileged: z.ZodOptional; gpu: z.ZodOptional; }, z.core.$strict>; export type SandboxResourcesAsk = z.infer; export declare const DeviceSandboxSchema: z.ZodObject<{ slug: z.ZodString; container: z.ZodString; name: z.ZodOptional; running: z.ZodBoolean; image: z.ZodString; tunnelRunning: z.ZodOptional; resources: z.ZodOptional; cpus: z.ZodOptional; privileged: z.ZodBoolean; gpu: z.ZodBoolean; hostRuntime: z.ZodArray; overlayRuntime: z.ZodArray; shape: z.ZodOptional; cpus: z.ZodNullable; privileged: z.ZodBoolean; gpu: z.ZodBoolean; }, z.core.$strip>>; desired: z.ZodOptional; cpus: z.ZodNullable; privileged: z.ZodBoolean; gpu: z.ZodBoolean; }, z.core.$strip>>; saved: z.ZodOptional>; cpus: z.ZodOptional>; privileged: z.ZodOptional; gpu: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; staged: z.ZodOptional; channel: z.ZodOptional; }, z.core.$strip>>; version: z.ZodOptional; parked: z.ZodOptional; probationUntil: z.ZodOptional; lastUpdate: z.ZodOptional; verb: z.ZodOptional; at: z.ZodNumber; from: z.ZodOptional; to: z.ZodOptional; reason: z.ZodOptional; log: z.ZodOptional; keepUntil: z.ZodOptional; }, z.core.$strip>>; rollbackTargets: z.ZodOptional; download: z.ZodOptional; }, z.core.$strip>>>; keptElsewhere: z.ZodOptional; keptElsewhereName: z.ZodOptional; adoptedFrom: z.ZodOptional; keeperSilentSince: z.ZodOptional; asleep: z.ZodOptional; sandboxId: z.ZodOptional>; localPort: z.ZodOptional>; platformId: z.ZodOptional>; }, z.core.$strip>; export type DeviceSandbox = z.infer; export declare const DeviceSandboxOpSchema: z.ZodEnum<{ create: "create"; "forget-shape": "forget-shape"; logs: "logs"; prepare: "prepare"; "prepare-background": "prepare-background"; rebuild: "rebuild"; reconnect: "reconnect"; remove: "remove"; reshape: "reshape"; restart: "restart"; rollback: "rollback"; "runner-remove": "runner-remove"; "runner-up": "runner-up"; "set-shape": "set-shape"; sleep: "sleep"; start: "start"; stop: "stop"; update: "update"; }>; export type DeviceSandboxOp = z.infer; export declare const DeviceSandboxFlowSchema: z.ZodObject<{ op: z.ZodEnum<{ create: "create"; "forget-shape": "forget-shape"; logs: "logs"; prepare: "prepare"; "prepare-background": "prepare-background"; rebuild: "rebuild"; reconnect: "reconnect"; remove: "remove"; reshape: "reshape"; restart: "restart"; rollback: "rollback"; "runner-remove": "runner-remove"; "runner-up": "runner-up"; "set-shape": "set-shape"; sleep: "sleep"; start: "start"; stop: "stop"; update: "update"; }>; slug: z.ZodString; hash: z.ZodOptional; to: z.ZodOptional; shape: z.ZodOptional; cpus: z.ZodNullable; privileged: z.ZodBoolean; gpu: z.ZodBoolean; }, z.core.$strict>>; when: z.ZodOptional>; resources: z.ZodOptional>; cpus: z.ZodOptional>; privileged: z.ZodOptional; gpu: z.ZodOptional; }, z.core.$strict>>; later: z.ZodOptional; parentUrl: z.ZodOptional; pair: z.ZodOptional; setupCode: z.ZodOptional; platformUrl: z.ZodOptional; definition: z.ZodOptional; overlay: z.ZodOptional; overlayHash: z.ZodOptional; }, z.core.$strict>; export type DeviceSandboxFlow = z.infer; export type SandboxShapeFields = { readonly [K in keyof SandboxShape]?: SandboxShape[K] | undefined; }; export declare const icShapeArgs: (slug: string, fields: SandboxShapeFields, when: SandboxShapeWhen) => string[]; export declare const icForgetShapeArgs: (slug: string) => string[]; export declare const icPowerArgs: (op: "start" | "stop" | "restart" | "sleep", slug: string) => string[]; export declare const DeviceSandboxFlowInputSchema: z.ZodObject<{ op: z.ZodEnum<{ create: "create"; "forget-shape": "forget-shape"; logs: "logs"; prepare: "prepare"; "prepare-background": "prepare-background"; rebuild: "rebuild"; reconnect: "reconnect"; remove: "remove"; reshape: "reshape"; restart: "restart"; rollback: "rollback"; "runner-remove": "runner-remove"; "runner-up": "runner-up"; "set-shape": "set-shape"; sleep: "sleep"; start: "start"; stop: "stop"; update: "update"; }>; slug: z.ZodString; hash: z.ZodOptional; to: z.ZodOptional; shape: z.ZodOptional; cpus: z.ZodNullable; privileged: z.ZodBoolean; gpu: z.ZodBoolean; }, z.core.$strict>>; when: z.ZodOptional>; resources: z.ZodOptional>; cpus: z.ZodOptional>; privileged: z.ZodOptional; gpu: z.ZodOptional; }, z.core.$strict>>; later: z.ZodOptional; parentUrl: z.ZodOptional; pair: z.ZodOptional; setupCode: z.ZodOptional; platformUrl: z.ZodOptional; definition: z.ZodOptional; overlay: z.ZodOptional; overlayHash: z.ZodOptional; id: z.ZodString; resumeTurns: z.ZodOptional; }, z.core.$strict>; export type DeviceSandboxFlowInput = z.infer; export declare const DeviceFlowLineSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"line">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"result">; message: z.ZodString; }, z.core.$strip>, z.ZodObject<{ kind: z.ZodLiteral<"error">; message: z.ZodString; }, z.core.$strip>], "kind">; export type DeviceFlowLine = z.infer; export declare const DeviceAgentOpSchema: z.ZodEnum<{ "forget-unreachable": "forget-unreachable"; restart: "restart"; upgrade: "upgrade"; }>; export type DeviceAgentOp = z.infer; export declare const DeviceAgentFlowSchema: z.ZodObject<{ op: z.ZodEnum<{ "forget-unreachable": "forget-unreachable"; restart: "restart"; upgrade: "upgrade"; }>; }, z.core.$strict>; export type DeviceAgentFlow = z.infer; export declare const DeviceAgentFlowInputSchema: z.ZodObject<{ op: z.ZodEnum<{ "forget-unreachable": "forget-unreachable"; restart: "restart"; upgrade: "upgrade"; }>; id: z.ZodString; }, z.core.$strict>; export type DeviceAgentFlowInput = z.infer; export * from "./device-commands.js"; export * from "./device-folder.js"; export declare const DevicePairingSchema: z.ZodObject<{ sandboxId: z.ZodString; name: z.ZodOptional; mode: z.ZodEnum<{ mirror: "mirror"; sync: "sync"; }>; localDir: z.ZodOptional; remoteDir: z.ZodOptional; deliver: z.ZodOptional>; slug: z.ZodOptional; mirroring: z.ZodOptional>; mutagenStatus: z.ZodOptional; copy: z.ZodOptional; bytes: z.ZodOptional; stagedFiles: z.ZodOptional; stagingFiles: z.ZodOptional; stagedBytes: z.ZodOptional; }, z.core.$strip>>; conflicts: z.ZodOptional; conflictedPaths: z.ZodOptional>; sandbox: z.ZodOptional>; nature: z.ZodOptional>; }, z.core.$strip>>>; paused: z.ZodOptional; heldBy: z.ZodOptional>; backupStatus: z.ZodOptional; lowDisk: z.ZodOptional>; bridgeHolds: z.ZodOptional>; failures: z.ZodNumber; since: z.ZodNumber; retryAt: z.ZodNumber; }, z.core.$strip>>>; }, z.core.$strip>; export type DevicePairing = z.infer; export declare const DevicePortStateSchema: z.ZodEnum<{ busy: "busy"; "held-by-sandbox": "held-by-sandbox"; ignored: "ignored"; mirrored: "mirrored"; }>; export type DevicePortState = z.infer; export declare const PortSkipReasonSchema: z.ZodEnum<{ busy: "busy"; "held-by-sandbox": "held-by-sandbox"; ignored: "ignored"; }>; export type PortSkipReason = z.infer; export declare const DevicePortSchema: z.ZodObject<{ port: z.ZodNumber; host: z.ZodEnum<{ "127.0.0.1": "127.0.0.1"; "::1": "::1"; }>; sandboxId: z.ZodString; state: z.ZodEnum<{ busy: "busy"; "held-by-sandbox": "held-by-sandbox"; ignored: "ignored"; mirrored: "mirrored"; }>; heldBy: z.ZodOptional; command: z.ZodOptional; }, z.core.$strip>; export type DevicePort = z.infer; export declare const DeviceAgentSchema: z.ZodObject<{ running: z.ZodBoolean; pid: z.ZodOptional; installed: z.ZodOptional; build: z.ZodOptional; lastTickAt: z.ZodOptional; }, z.core.$strip>; export type DeviceAgent = z.infer; export declare const WATCHER_STALL_MS: number; export declare const AGENT_STALL_AFTER_MS: number; export declare const agentStalled: (agent: DeviceAgent, now: number) => boolean; export declare const DeviceReportSchema: z.ZodObject<{ machineId: z.ZodOptional; hostname: z.ZodString; os: z.ZodString; wsl: z.ZodOptional>; pairings: z.ZodArray; mode: z.ZodEnum<{ mirror: "mirror"; sync: "sync"; }>; localDir: z.ZodOptional; remoteDir: z.ZodOptional; deliver: z.ZodOptional>; slug: z.ZodOptional; mirroring: z.ZodOptional>; mutagenStatus: z.ZodOptional; copy: z.ZodOptional; bytes: z.ZodOptional; stagedFiles: z.ZodOptional; stagingFiles: z.ZodOptional; stagedBytes: z.ZodOptional; }, z.core.$strip>>; conflicts: z.ZodOptional; conflictedPaths: z.ZodOptional>; sandbox: z.ZodOptional>; nature: z.ZodOptional>; }, z.core.$strip>>>; paused: z.ZodOptional; heldBy: z.ZodOptional>; backupStatus: z.ZodOptional; lowDisk: z.ZodOptional>; bridgeHolds: z.ZodOptional>; failures: z.ZodNumber; since: z.ZodNumber; retryAt: z.ZodNumber; }, z.core.$strip>>>; }, z.core.$strip>>; ports: z.ZodArray; sandboxId: z.ZodString; state: z.ZodEnum<{ busy: "busy"; "held-by-sandbox": "held-by-sandbox"; ignored: "ignored"; mirrored: "mirrored"; }>; heldBy: z.ZodOptional; command: z.ZodOptional; }, z.core.$strip>>; agent: z.ZodObject<{ running: z.ZodBoolean; pid: z.ZodOptional; installed: z.ZodOptional; build: z.ZodOptional; lastTickAt: z.ZodOptional; }, z.core.$strip>; capturedAt: z.ZodNumber; }, z.core.$strip>; export type DeviceReport = z.infer; export declare const REPORT_QUIET_AFTER_MS = 60000; export declare const reportQuiet: (report: DeviceReport, receivedAt: number) => boolean; export declare const environmentOf: (facts: Pick | undefined, report: DeviceReport | undefined) => string | undefined; export declare const differentEnvironment: (left: string | undefined, right: string | undefined) => boolean; export declare const agentBuildSkew: (agent: DeviceAgent) => { readonly running: string | undefined; readonly installed: string; } | undefined; export declare const DeviceGapSchema: z.ZodEnum<{ offline: "offline"; "scope-off": "scope-off"; unreported: "unreported"; }>; export type DeviceGap = z.infer; export declare const DeviceSyncSchema: z.ZodObject<{ machine: z.ZodString; mode: z.ZodEnum<{ mirror: "mirror"; sync: "sync"; }>; seenAt: z.ZodOptional; machineId: z.ZodOptional; environment: z.ZodOptional; }, z.core.$strip>; export type DeviceSync = z.infer; export declare const SshHostKeySchema: z.ZodString; export declare const SyncEnrollmentRequestSchema: z.ZodObject<{ machineId: z.ZodOptional; environment: z.ZodOptional; key: z.ZodString; }, z.core.$strip>; export type SyncEnrollmentRequest = z.infer; export declare const SyncEnrollmentAnswerSchema: z.ZodObject<{ ok: z.ZodOptional>; syncToken: z.ZodOptional; mode: z.ZodOptional>; hostKey: z.ZodOptional; }, z.core.$strip>; export type SyncEnrollmentAnswer = z.infer; export declare const DeviceSchema: z.ZodObject<{ key: z.ZodString; label: z.ZodString; sync: z.ZodOptional; seenAt: z.ZodOptional; machineId: z.ZodOptional; environment: z.ZodOptional; }, z.core.$strip>>; hostId: z.ZodOptional; card: z.ZodOptional; machineId: z.ZodOptional; online: z.ZodOptional; platform: z.ZodOptional; facts: z.ZodOptional; os: z.ZodString; arch: z.ZodString; shell: z.ZodString; home: z.ZodString; roots: z.ZodArray; engine: z.ZodOptional>; hostname: z.ZodOptional; wsl: z.ZodOptional>; wslDistros: z.ZodOptional>; links: z.ZodOptional; }, z.core.$strip>>; features: z.ZodOptional>; icOutOfDate: z.ZodOptional; upkeep: z.ZodOptional; fixed: z.ZodRecord; skipped: z.ZodArray>; }, z.core.$strip>>; previousExit: z.ZodOptional; ic: z.ZodOptional; }, z.core.$strip>>; icOverrides: z.ZodOptional>; intenticOs: z.ZodOptional>; }, z.core.$strip>>; agentVersion: z.ZodOptional; lastSeen: z.ZodOptional; report: z.ZodOptional; hostname: z.ZodString; os: z.ZodString; wsl: z.ZodOptional>; pairings: z.ZodArray; mode: z.ZodEnum<{ mirror: "mirror"; sync: "sync"; }>; localDir: z.ZodOptional; remoteDir: z.ZodOptional; deliver: z.ZodOptional>; slug: z.ZodOptional; mirroring: z.ZodOptional>; mutagenStatus: z.ZodOptional; copy: z.ZodOptional; bytes: z.ZodOptional; stagedFiles: z.ZodOptional; stagingFiles: z.ZodOptional; stagedBytes: z.ZodOptional; }, z.core.$strip>>; conflicts: z.ZodOptional; conflictedPaths: z.ZodOptional>; sandbox: z.ZodOptional>; nature: z.ZodOptional>; }, z.core.$strip>>>; paused: z.ZodOptional; heldBy: z.ZodOptional>; backupStatus: z.ZodOptional; lowDisk: z.ZodOptional>; bridgeHolds: z.ZodOptional>; failures: z.ZodNumber; since: z.ZodNumber; retryAt: z.ZodNumber; }, z.core.$strip>>>; }, z.core.$strip>>; ports: z.ZodArray; sandboxId: z.ZodString; state: z.ZodEnum<{ busy: "busy"; "held-by-sandbox": "held-by-sandbox"; ignored: "ignored"; mirrored: "mirrored"; }>; heldBy: z.ZodOptional; command: z.ZodOptional; }, z.core.$strip>>; agent: z.ZodObject<{ running: z.ZodBoolean; pid: z.ZodOptional; installed: z.ZodOptional; build: z.ZodOptional; lastTickAt: z.ZodOptional; }, z.core.$strip>; capturedAt: z.ZodNumber; }, z.core.$strip>>; sandboxes: z.ZodOptional; running: z.ZodBoolean; image: z.ZodString; tunnelRunning: z.ZodOptional; resources: z.ZodOptional; cpus: z.ZodOptional; privileged: z.ZodBoolean; gpu: z.ZodBoolean; hostRuntime: z.ZodArray; overlayRuntime: z.ZodArray; shape: z.ZodOptional; cpus: z.ZodNullable; privileged: z.ZodBoolean; gpu: z.ZodBoolean; }, z.core.$strip>>; desired: z.ZodOptional; cpus: z.ZodNullable; privileged: z.ZodBoolean; gpu: z.ZodBoolean; }, z.core.$strip>>; saved: z.ZodOptional>; cpus: z.ZodOptional>; privileged: z.ZodOptional; gpu: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; staged: z.ZodOptional; channel: z.ZodOptional; }, z.core.$strip>>; version: z.ZodOptional; parked: z.ZodOptional; probationUntil: z.ZodOptional; lastUpdate: z.ZodOptional; verb: z.ZodOptional; at: z.ZodNumber; from: z.ZodOptional; to: z.ZodOptional; reason: z.ZodOptional; log: z.ZodOptional; keepUntil: z.ZodOptional; }, z.core.$strip>>; rollbackTargets: z.ZodOptional; download: z.ZodOptional; }, z.core.$strip>>>; keptElsewhere: z.ZodOptional; keptElsewhereName: z.ZodOptional; adoptedFrom: z.ZodOptional; keeperSilentSince: z.ZodOptional; asleep: z.ZodOptional; sandboxId: z.ZodOptional>; localPort: z.ZodOptional>; platformId: z.ZodOptional>; }, z.core.$strip>>>; sandboxesUnread: z.ZodOptional; manages: z.ZodOptional; gap: z.ZodOptional>; }, z.core.$strip>; export type Device = z.infer; export declare const CardlessHostSchema: z.ZodObject<{ id: z.ZodString; card: z.ZodString; environment: z.ZodString; }, z.core.$strip>; export type CardlessHost = z.infer; export declare const SharedIdentitySchema: z.ZodObject<{ machineId: z.ZodString; connections: z.ZodArray>; }, z.core.$strip>; export type SharedIdentity = z.infer; export declare const DevicesListSchema: z.ZodObject<{ cardlessHosts: z.ZodOptional>>; sharedIdentities: z.ZodOptional>; }, z.core.$strip>>>; devices: z.ZodArray; seenAt: z.ZodOptional; machineId: z.ZodOptional; environment: z.ZodOptional; }, z.core.$strip>>; hostId: z.ZodOptional; card: z.ZodOptional; machineId: z.ZodOptional; online: z.ZodOptional; platform: z.ZodOptional; facts: z.ZodOptional; os: z.ZodString; arch: z.ZodString; shell: z.ZodString; home: z.ZodString; roots: z.ZodArray; engine: z.ZodOptional>; hostname: z.ZodOptional; wsl: z.ZodOptional>; wslDistros: z.ZodOptional>; links: z.ZodOptional; }, z.core.$strip>>; features: z.ZodOptional>; icOutOfDate: z.ZodOptional; upkeep: z.ZodOptional; fixed: z.ZodRecord; skipped: z.ZodArray>; }, z.core.$strip>>; previousExit: z.ZodOptional; ic: z.ZodOptional; }, z.core.$strip>>; icOverrides: z.ZodOptional>; intenticOs: z.ZodOptional>; }, z.core.$strip>>; agentVersion: z.ZodOptional; lastSeen: z.ZodOptional; report: z.ZodOptional; hostname: z.ZodString; os: z.ZodString; wsl: z.ZodOptional>; pairings: z.ZodArray; mode: z.ZodEnum<{ mirror: "mirror"; sync: "sync"; }>; localDir: z.ZodOptional; remoteDir: z.ZodOptional; deliver: z.ZodOptional>; slug: z.ZodOptional; mirroring: z.ZodOptional>; mutagenStatus: z.ZodOptional; copy: z.ZodOptional; bytes: z.ZodOptional; stagedFiles: z.ZodOptional; stagingFiles: z.ZodOptional; stagedBytes: z.ZodOptional; }, z.core.$strip>>; conflicts: z.ZodOptional; conflictedPaths: z.ZodOptional>; sandbox: z.ZodOptional>; nature: z.ZodOptional>; }, z.core.$strip>>>; paused: z.ZodOptional; heldBy: z.ZodOptional>; backupStatus: z.ZodOptional; lowDisk: z.ZodOptional>; bridgeHolds: z.ZodOptional>; failures: z.ZodNumber; since: z.ZodNumber; retryAt: z.ZodNumber; }, z.core.$strip>>>; }, z.core.$strip>>; ports: z.ZodArray; sandboxId: z.ZodString; state: z.ZodEnum<{ busy: "busy"; "held-by-sandbox": "held-by-sandbox"; ignored: "ignored"; mirrored: "mirrored"; }>; heldBy: z.ZodOptional; command: z.ZodOptional; }, z.core.$strip>>; agent: z.ZodObject<{ running: z.ZodBoolean; pid: z.ZodOptional; installed: z.ZodOptional; build: z.ZodOptional; lastTickAt: z.ZodOptional; }, z.core.$strip>; capturedAt: z.ZodNumber; }, z.core.$strip>>; sandboxes: z.ZodOptional; running: z.ZodBoolean; image: z.ZodString; tunnelRunning: z.ZodOptional; resources: z.ZodOptional; cpus: z.ZodOptional; privileged: z.ZodBoolean; gpu: z.ZodBoolean; hostRuntime: z.ZodArray; overlayRuntime: z.ZodArray; shape: z.ZodOptional; cpus: z.ZodNullable; privileged: z.ZodBoolean; gpu: z.ZodBoolean; }, z.core.$strip>>; desired: z.ZodOptional; cpus: z.ZodNullable; privileged: z.ZodBoolean; gpu: z.ZodBoolean; }, z.core.$strip>>; saved: z.ZodOptional>; cpus: z.ZodOptional>; privileged: z.ZodOptional; gpu: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; staged: z.ZodOptional; channel: z.ZodOptional; }, z.core.$strip>>; version: z.ZodOptional; parked: z.ZodOptional; probationUntil: z.ZodOptional; lastUpdate: z.ZodOptional; verb: z.ZodOptional; at: z.ZodNumber; from: z.ZodOptional; to: z.ZodOptional; reason: z.ZodOptional; log: z.ZodOptional; keepUntil: z.ZodOptional; }, z.core.$strip>>; rollbackTargets: z.ZodOptional; download: z.ZodOptional; }, z.core.$strip>>>; keptElsewhere: z.ZodOptional; keptElsewhereName: z.ZodOptional; adoptedFrom: z.ZodOptional; keeperSilentSince: z.ZodOptional; asleep: z.ZodOptional; sandboxId: z.ZodOptional>; localPort: z.ZodOptional>; platformId: z.ZodOptional>; }, z.core.$strip>>>; sandboxesUnread: z.ZodOptional; manages: z.ZodOptional; gap: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; export type DevicesList = z.infer; export interface Machine { readonly key: string; readonly label: string; readonly environments: readonly Device[]; } export declare const deviceHostname: (device: Device) => string | undefined; export declare const deviceEnvironment: (device: Device) => string | undefined; export declare const isWslDevice: (device: Device) => boolean; export declare const deviceDistro: (device: Device) => string | undefined; export declare const deviceMachineId: (device: Device) => string | undefined; export declare const machinesOf: (devices: readonly Device[]) => Machine[]; export declare const hostRunningSandbox: (devices: readonly Device[], slug: string | undefined) => string | undefined; export type PathReach = { readonly kind: "direct"; } | { readonly kind: "wsl"; readonly distro: string; } | { readonly kind: "none"; readonly distros: readonly string[]; }; export declare const pathReach: (platform: string | undefined, facts: DeviceFacts | undefined, path: string) => PathReach; export declare const hostHoldingPath: (devices: readonly Device[], slug: string | undefined, path: string | undefined) => string | undefined; export declare const SyncStatusSchema: z.ZodObject<{ enrolled: z.ZodBoolean; syncing: z.ZodOptional; available: z.ZodOptional; machines: z.ZodOptional; hostname: z.ZodString; os: z.ZodString; wsl: z.ZodOptional>; pairings: z.ZodArray; mode: z.ZodEnum<{ mirror: "mirror"; sync: "sync"; }>; localDir: z.ZodOptional; remoteDir: z.ZodOptional; deliver: z.ZodOptional>; slug: z.ZodOptional; mirroring: z.ZodOptional>; mutagenStatus: z.ZodOptional; copy: z.ZodOptional; bytes: z.ZodOptional; stagedFiles: z.ZodOptional; stagingFiles: z.ZodOptional; stagedBytes: z.ZodOptional; }, z.core.$strip>>; conflicts: z.ZodOptional; conflictedPaths: z.ZodOptional>; sandbox: z.ZodOptional>; nature: z.ZodOptional>; }, z.core.$strip>>>; paused: z.ZodOptional; heldBy: z.ZodOptional>; backupStatus: z.ZodOptional; lowDisk: z.ZodOptional>; bridgeHolds: z.ZodOptional>; failures: z.ZodNumber; since: z.ZodNumber; retryAt: z.ZodNumber; }, z.core.$strip>>>; }, z.core.$strip>>; ports: z.ZodArray; sandboxId: z.ZodString; state: z.ZodEnum<{ busy: "busy"; "held-by-sandbox": "held-by-sandbox"; ignored: "ignored"; mirrored: "mirrored"; }>; heldBy: z.ZodOptional; command: z.ZodOptional; }, z.core.$strip>>; agent: z.ZodObject<{ running: z.ZodBoolean; pid: z.ZodOptional; installed: z.ZodOptional; build: z.ZodOptional; lastTickAt: z.ZodOptional; }, z.core.$strip>; capturedAt: z.ZodNumber; }, z.core.$strip>>>; }, z.core.$strip>; export type SyncStatus = z.infer; //# sourceMappingURL=devices.d.ts.map