/** * Parse run-time CLI flags from the argv slice that comes AFTER the scraper id. * * Supported shapes (only these two): * --key=value * --key value * * Bare flags (--verbose with no value) are NOT supported. Use --verbose=true if you * need a boolean — scrapers parse their own arg types from raw strings. * * Reserved flags (consumed by the framework, never visible to scrapers): * --out= stable filename leaf for results, overrides timestamp default * --concurrency= task-queue concurrency (default 3) * --rpm= per-domain requests per minute (default 30) * --min-delay= minimum delay between requests to a domain (default 2000) * * @throws Error on unknown positional, bare flags, or empty --out= */ /** * Reserved flag names. Adding an entry here automatically updates both the * `ReservedFlags` map type and the runtime membership check — single source * of truth. To add a new reserved flag, append to this tuple and nothing else. */ declare const RESERVED_FLAG_NAMES: readonly ["out", "concurrency", "rpm", "min-delay"]; type ReservedFlagName = (typeof RESERVED_FLAG_NAMES)[number]; type ReservedFlags = Partial>; export interface ParsedRunArgs { readonly reserved: ReservedFlags; readonly args: Record; } export declare function parseRunArgs(argv: readonly string[]): ParsedRunArgs; export {};