import { type FeedConfig } from './feed-config.js';
export interface PollResult {
    feedUrl: string;
    ok: boolean;
    itemsAdded: number;
    error?: string;
}
export interface PollerHandle {
    stop(): void;
    readonly running: boolean;
}
export declare function pollFeedsOnce(opts?: {
    feeds?: FeedConfig[];
    fetchImpl?: typeof fetch;
    timeoutMs?: number;
}): Promise<PollResult[]>;
export declare function pollFeedsForever(opts?: {
    intervalSec?: number;
    feeds?: FeedConfig[];
    fetchImpl?: typeof fetch;
}): PollerHandle;
//# sourceMappingURL=feed-poller.d.ts.map