/**
 * Session artifact discovery and resolution.
 *
 * Scans parsed session events for file-write tool calls (Write, Edit, etc.)
 * and returns metadata about each artifact: path, authoring tool, existence
 * on disk, and file size. Used by the artifacts subcommand and session detail views.
 */
import type { SessionMeta, SessionArtifact } from './types.js';
/** Parse a session and return metadata for every file written or edited during it. */
export declare function discoverArtifacts(meta: SessionMeta): SessionArtifact[];
/** Refuse to load artifact files larger than this. Returns '' silently above the cap. */
export declare const ARTIFACT_MAX_BYTES = 50000000;
/** Read the current contents of an artifact file from disk. Rejects symlinks. */
export declare function readArtifact(artifact: SessionArtifact): string;
/** Resolve a user-provided name to an artifact by exact path, basename, or path suffix. */
export declare function resolveArtifact(artifacts: SessionArtifact[], name: string): SessionArtifact | null;
