export type ResolveOptions = { sessionId?: string; jsonlPath?: string; projectsDir?: string; codexSessionsDir?: string; grokSessionsDir?: string; cwd?: string; env?: NodeJS.ProcessEnv; }; export declare const SESSION_ID: RegExp; type TranscriptResolution = { path: string; sessionId: string; } | { error: string; }; export declare function globFrom(root: string, pattern: string): string[]; /** * Canonical transcript resolution for consumers. * * - Session ids are validated as UUIDs and lowercased (`invalid session id format` otherwise). * - Roots honor `CODEX_HOME`, `CLAUDE_CONFIG_DIR` and `GROK_HOME` from `options.env` * (default `process.env`), unless an explicit `*SessionsDir`/`projectsDir` is given. * - Returns `{ error }` when more than one transcript matches a session, rather than * picking the first match, and when none matches. * - An explicit `jsonlPath` skips discovery. */ export declare function resolveTranscriptFile(options: ResolveOptions): TranscriptResolution; export {};