import type { Matcher } from '../Matchers'; export declare enum ThreadStatus { Running = "running", Disposing = "disposing", Disposed = "disposed" } export interface ThreadInfo { id: string; parentId?: string; taskName: string; status: ThreadStatus; childIds: string[]; effectKeys: readonly string[]; imports: string[]; exports: string[]; error?: string; } export interface ThreadTreeNode extends ThreadInfo { children: ThreadTreeNode[]; } export interface ThreadsApi { list(): ThreadInfo[]; getHierarchy(): ThreadTreeNode[]; getHierarchy(rootThreadId: string): ThreadTreeNode | undefined; getHierarchy(rootMatcher: Matcher): ThreadTreeNode[]; find(matcher: Matcher): ThreadInfo | undefined; findById(threadId: string): ThreadInfo | undefined; findAll(matcher: Matcher): ThreadInfo[]; }