/** * use-feed — owns the feed array. * * Entries are appended immutably (so completed history can render via Ink's * `` without re-rendering) and updated by id (streaming/permission * state). `appendEntry` generates and returns the entry id so callers can * patch the same entry later (e.g. resolve a permission prompt). */ import type { FeedEntry, FeedEntryInput } from '../types.js'; export interface FeedApi { entries: FeedEntry[]; appendEntry: (entry: FeedEntryInput) => string; updateEntry: (id: string, patch: Partial) => void; clear: () => void; } export declare function useFeed(): FeedApi;