/** * Source factory — resolves a `LogSource` config to its reader/follower. * * Switching on the type discriminator keeps tool code agnostic of the * underlying mechanism: tools call `createReader(source).read(opts)` or * `createFollower(source, max)` regardless of whether it's a file, a docker * container, or a kubernetes pod. */ import { RingBufferFollower } from '../follower'; import { LogReader, LogSource } from '../types'; export declare function createReader(source: LogSource): LogReader; export declare function createFollower(source: LogSource, maxLines: number): Promise;