import { type EffectStatus } from "./effect-record.ts";
/** The first backwards pass; later chunks continue until the header, so it is never a cut-off. */
export declare const EFFECT_LOOKUP_CHUNK_BYTES: number;
export type EffectLookup = {
    readonly found: true;
    readonly effect: EffectStatus;
} | {
    readonly found: false;
    readonly searched: "complete";
};
export declare class TranscriptUnreadable extends Error {
    readonly code = "transcript_unreadable";
    readonly path: string;
    readonly reason: string;
    readonly action = "check the sessionPath, or query the loaded session by sessionId; do not treat this as not found";
    constructor(path: string, cause: unknown);
}
/**
 * Answer `effectId` from a transcript on disk (an unloaded session), reading custom entries from the tail
 * backwards until the id is found or the header is reached. `found: false` is answered ONLY after the
 * whole file was searched; a file that cannot be read throws `TranscriptUnreadable` instead, because a
 * caller treats `found: false` as proof the effect never landed and retries it.
 */
export declare function lookupEffectInTranscript(path: string, effectId: string): Promise<EffectLookup>;
//# sourceMappingURL=effect-transcript-lookup.d.ts.map