import { SummarizeOptions } from '../index.js'; export { CacheOption, SummarizeResult, SummaryCache } from '../index.js'; type SummarizerStatus = "idle" | "loading" | "streaming" | "done" | "unavailable"; interface UseSummarizerOptions extends Omit { /** Whether to automatically run on mount. Default: `true`. */ enabled?: boolean; } interface UseSummarizerReturn { status: SummarizerStatus; /** Final summary text (cleaned), or `null` while idle / unavailable. */ output: string | null; error: Error | null; /** Whether the result was loaded from cache (no model call). */ fromCache: boolean; /** Imperatively dismiss; sets status to `"unavailable"` and clears output. */ dismiss(): void; } /** * Auto-run a summarization on mount and re-run when meaningful inputs * change. Pass primitive options inline; non-primitive options (`cache`, * `monitor`) should be stable references (memoize if necessary). */ declare const useSummarizer: (options: UseSummarizerOptions) => UseSummarizerReturn; export { SummarizeOptions, type SummarizerStatus, type UseSummarizerOptions, type UseSummarizerReturn, useSummarizer };