/** * A single Addr / Port pair that was accessed during the duration of the trace */ export interface Address { addr: string; port: string; } /** * Tracked environment variable keys that were accessed during the duration of the trace */ export type EnvVars = Set; /** * Tracks the file system paths that were accessed during the duration of the trace */ export type FS = Set; /** * Tracked Addr / Port pairs that were accessed during the duration of the trace */ export type Addresses = Array
; /** * The serializable version of `TurborepoAccessTraceResult` - this is required to pass the `TurborepoAccessTraceResult` * between workers where Sets are not serializable. */ export type SerializableTurborepoAccessTraceResult = Readonly<{ fs: Array; addresses: Addresses; envVars: Array; }>; /** * The public version of `TurborepoAccessTraceResult` - this is what is written to the trace file */ export type PublicTurborepoAccessTraceResult = Readonly<{ filePaths: Array; network: boolean; envVarKeys: Array; }>; /** * A function that restores the original state of a proxy */ export type RestoreOriginalFunction = () => void;