/**
 * Shared transcript-JSONL helpers for hooks that need to read what the
 * last user or assistant message was.
 *
 * Claude Code writes one event per line. Schema is duck-typed because
 * the official shape isn't documented as stable — fields we don't
 * recognize are ignored.
 */
/**
 * Walk the transcript JSONL backwards and return the most recent USER
 * message text. Tool-result events (which also have `type: "user"`
 * but carry an array `content` of tool_result blocks) are skipped — we
 * only return user-typed plain-string utterances.
 *
 * Returns "" on any error or if no plain-string user message exists.
 */
export declare function readLastUserText(transcriptPath: string): Promise<string>;
/**
 * Walk the transcript JSONL backwards and return the most recent
 * ASSISTANT message text. Concatenates text blocks if content is an
 * array of typed blocks.
 */
export declare function readLastAssistantText(transcriptPath: string): Promise<string>;
export declare function readActiveTaskId(transcriptPath: string): Promise<string | null>;
export declare function readTranscriptLines(transcriptPath: string): Promise<string[]>;
//# sourceMappingURL=transcript.d.ts.map