import type { NexusMemory } from "../memory-engine/nexus-memory.js"; import { type SafeFetchResult } from "./safe-fetch.js"; import type { CollectorResult, FeedResult, FetchOptions } from "./types.js"; type FetchMetadata = Pick & { rawBytes: number; }; /** * Process already-fetched page/feed bytes through the collector trust boundary. * Exported for deterministic integration tests; network callers use collectUrl. */ export declare function collectFetchedUrl(url: string, html: string, memory: NexusMemory, options?: FetchOptions, metadata?: FetchMetadata): CollectorResult; export declare function collectUrl(url: string, memory: NexusMemory, options?: FetchOptions): Promise; /** * Parse, sanitize, and conditionally persist an already-fetched feed. Every item * is an independent trust boundary so one poisoned entry cannot taint memory. */ export declare function collectFeedFromXml(feedUrl: string, xml: string, memory: NexusMemory, options?: FetchOptions & { maxItems?: number; }, metadata?: FetchMetadata): FeedResult; export declare function collectFeed(feedUrl: string, memory: NexusMemory, options?: FetchOptions & { maxItems?: number; }): Promise; export declare function collectUrls(urls: string[], memory: NexusMemory, options?: FetchOptions): Promise; export {};