/** * List-API response normalizers — HOISTED from * `components/chat/hooks/use-chat-card-item.ts` (private copies) so the * related-content rail can import them WITHOUT touching the chat hooks * chunk (which reaches `@tanstack/react-query`). Pure + server-safe. * * The hub's `lib/utils/entity-list-api.ts` re-exports these — one * implementation of response-shape normalization across both repos. */ /** Extract the items array from each endpoint's response shape (some * return `{ items }`, others `{ posts }`, etc.). Single normalization * point — callers always read `Item[]`. */ export declare function extractItems(data: unknown): unknown[]; /** Extract a stable id from a fetched item — different shapes use * `id` vs `external_id`. Used by the chat loader to match the fetched * array element back to the marker's id. */ export declare function extractItemId(type: string, item: unknown): string | null; //# sourceMappingURL=extract-items.d.ts.map