import type { LLMConfig } from "./llm.js"; import type { BrowserOptions } from "./browser.js"; import { type DomainFilter } from "./domain-filter.js"; import { type ApiFormat } from "./llm-format.js"; import type { SourceAuthorityMode } from "./source-authority.js"; export interface RuntimeConfig { llm: LLMConfig; models: { plan: string; synth: string; critique: string; }; browser: BrowserOptions; searchAdapter: string; searchFallback?: string; resultsPerQuery: number; maxSources: number; maxWordsPerSource: number; deepRounds: number; concurrency: number; cache: { enabled: boolean; dir: string; ttlMs: number; }; respectRobots: boolean; verifyCitations: boolean; citeMinRecall: number; strictCitations: boolean; costEnabled: boolean; pdfMaxPages: number; include: string[]; domainFilter: DomainFilter; sessions: { enabled: boolean; dir: string; }; jsonOutput: boolean; streamEnabled: boolean; verbose: boolean; maxCostUsd?: number; tldr: boolean; dedupeNearDupes: boolean; nearDupeThreshold: number; sourceAuthority: SourceAuthorityMode; tags: string[]; sinceMs?: number; sinceRaw?: string; maxRuntimeMs?: number; maxRuntimeRaw?: string; } export interface CLIFlags { baseUrl?: string; apiKey?: string; model?: string; planModel?: string; synthModel?: string; criticModel?: string; maxTokens?: number; search?: string; searchFallback?: string; resultsPerQuery?: number; maxSources?: number; maxWordsPerSource?: number; timeoutMs?: number; llmTimeoutMs?: number; llmAttempts?: number; deepRounds?: number; concurrency?: number; noCache?: boolean; cacheTtlMs?: number; ignoreRobots?: boolean; noVerifyCites?: boolean; strictCites?: boolean; citeMinRecall?: number; noCost?: boolean; pdfMaxPages?: number; include?: string[]; allowDomain?: string[]; denyDomain?: string[]; apiFormat?: ApiFormat; noSessions?: boolean; json?: boolean; noStream?: boolean; verbose?: boolean; tldr?: boolean; since?: string; maxRuntime?: string; noDedupe?: boolean; dedupeThreshold?: number; sourceAuthority?: SourceAuthorityMode; tag?: string[]; maxCostUsd?: number; browserCdpEndpoint?: string; profile?: string; format?: string; narrate?: boolean; dryRun?: boolean; olderThan?: string; keep?: number; } export declare function resolveConfig(flags: CLIFlags, env: Record): RuntimeConfig; export declare function parsePositiveInt(s: string | undefined): number | undefined; export declare function parseNonNegativeInt(s: string | undefined): number | undefined; export declare function parseUnitFloat(s: string | undefined): number | undefined; //# sourceMappingURL=config.d.ts.map