export function cleanWorkspaceDir(dataDir: string): string; /** The folder beside the data folder that holds one folder per profile, each named by its id. */ export function profilesDir(dataDir: string): string; export function profileDir(dataDir: string, id: string): string; export declare const DEFAULT_PROFILE: "default"; export declare const PROFILE_ID: RegExp; export function cleanWorkspaceConfig(language?: string | null, now?: Date): { language?: string; onboarding: { completedAt: string; version: number; hintsSeen: string[] } }; export interface CleanWorkspace { active(): boolean; stranded(): boolean; profile(): string | null; ownCopy(): boolean; marker(): { frozen: boolean; cloud?: string; place?: string }; enter(): Promise; open(id?: string): Promise; leave(): Promise; settled(): Promise; holding(work: () => Promise): Promise; realCopy(request: (route: string, init?: RequestInit) => Promise): (route: string, init?: RequestInit) => Promise; } export function createCleanWorkspace(deps: { dataDir(): string; running(): string | null; swap(dir: string): Promise<{ ok: boolean }>; allowed?(): boolean; t?(key: string, params?: Record): string; changed?(): void; log?(line: string): void; }): CleanWorkspace;