import type { DreamuxEnvironment } from '@excitedjs/dreamux-types'; import { type OpenedActivityFile, type ScanBudget } from '@excitedjs/dreamux-utils'; export declare const CODEX_ACTIVITY_FILE_MESSAGES: { notFound: string; outsideRoot: string; notRegularFile: string; changedWhileOpening: string; unreadable: string; }; /** The default bounded budget for a Codex activity discovery scan. */ export declare function createCodexScanBudget(input?: { maxEntries?: number; maxElapsedMs?: number; }): ScanBudget; export interface CodexRolloutRoots { home: string; sessions: string; archived: string; } export interface CodexValidatedRollout { path: string; root: string; sessionId: string; rolloutId: string; historyBase: CodexHistoryBase | null; dev: number | bigint; ino: number | bigint; } export interface CodexHistoryBase { rolloutId: string; endByteOffset: number; } export declare function resolveCodexRolloutRoots(env: DreamuxEnvironment): Promise; export declare function validateCodexRolloutPath(candidate: string, expectedSessionId: string, roots: CodexRolloutRoots): Promise; export declare function locateCodexRollout(expectedSessionId: string, roots: CodexRolloutRoots, budget?: ScanBudget): Promise; export declare function findCodexRolloutById(roots: CodexRolloutRoots, rolloutId: string, budget?: ScanBudget): Promise; export declare function readCodexRolloutText(opened: OpenedActivityFile, maxDecodedBytes: number): Promise; //# sourceMappingURL=path.d.ts.map