import type { TraceProcessorService } from '../../services/traceProcessorService';
/**
 * Compute the sha256 hex digest of the on-disk trace file.
 *
 * Returns `null` when:
 *  - The trace is external RPC (no file on disk to hash).
 *  - The file is missing (e.g. trace was deleted between cache check and hash).
 *  - The stream errors out mid-read.
 *
 * Streams the read in chunks so multi-GB traces don't blow up memory.
 * Tradeoff: hashing 1 GB on a fast SSD takes ~5-10s, so callers must
 * `await` this off any latency-sensitive code path.
 */
export declare function computeTraceContentHash(tps: TraceProcessorService, traceId: string): Promise<string | null>;
/**
 * Quick boolean: does this trace have a backing file on disk?
 *
 * Used by callers that only need to pick a cache strategy (disk vs memory)
 * and don't actually need the hash. Cheaper than `computeTraceContentHash`
 * because it doesn't read the file.
 */
export declare function isFileBackedTrace(tps: TraceProcessorService, traceId: string): boolean;
//# sourceMappingURL=traceHash.d.ts.map