export declare const INSTANCE_DIRECTORY_SCHEMA_VERSION: 2; export interface InstanceAccessUrls { local?: string; remote?: string; } export interface Instance { id: string; name: string; displayName?: string; port: number; home: string; createdAt: string; kind?: "workspace" | "sandbox"; pinned?: boolean; accessUrls?: InstanceAccessUrls; } export type InstanceInput = Omit & { id?: string; }; export interface HostPathOptions { platform?: NodeJS.Platform; home?: string; env?: NodeJS.ProcessEnv; } export interface DirectoryOptions { registryPath?: string; legacyRegistryPath?: string; } export declare function resolveHostDataDir(options?: HostPathOptions): string; export declare function resolveInstancesRegistryPath(options?: HostPathOptions): string; export declare function resolveLegacyInstancesRegistryPath(options?: HostPathOptions): string; export declare function loadInstances(options?: DirectoryOptions): Instance[]; export declare function saveInstances(instances: InstanceInput[], options?: Pick): void; export declare function nextAvailablePort(instances: Pick[]): number; export declare function ensureDefaultInstance(): void; export declare function findInstance(name: string): Instance | undefined; //# sourceMappingURL=directory.d.ts.map