import type { Settings } from "../config/settings"; import type { WorkspaceTree } from "../workspace-tree"; import { type LazyService } from "./lazy-service"; /** Deadline used by the legacy workspace-tree startup scan and first-turn barrier. */ export declare const WORKSPACE_TREE_SCAN_TIMEOUT_MS = 5000; /** Runtime view over the initial workspace tree and later TTL refreshes. */ export interface WorkspaceTreeRuntime { snapshot: WorkspaceTree; refresh(): Promise; } /** * Build the workspace-tree service without importing the native scanner until * the service is activated. The scan itself remains the single authority for * both eager startup and the lazy first-turn barrier. * * `cwd` is resolved per scan rather than captured once: a session that rescopes * (`move_session`, `/move`) must have its refreshes re-root at the new cwd, * otherwise every later tree describes the abandoned launcher root. */ export declare function createWorkspaceTreeService(settings: Settings, cwd: string | (() => string)): LazyService;