/** * Shared value-parsers for Commander option declarations. */ import type { AuthMethod, QueryEngine } from '../types.js'; /** * Commander invokes the option `parser` as `(value, previous)`, so a bare * `parseInt` reference would receive the previous value as its radix and * silently return NaN. Use this wrapper everywhere a numeric option is * declared. The literal `10` is the decimal radix. */ export declare function parseIntArg(value: string): number; /** * Float counterpart to {@link parseIntArg} for numeric options that accept a * fractional value (e.g. a sub-1 messages-per-second sampler rate). */ export declare function parseFloatArg(value: string): number; /** Validate an http(s) URL option/env var so a bad value fails fast. */ export declare function parseUrl(url: string): string; /** Parse an env URL and include the variable name in validation errors. */ export declare function parseEnvUrl(envVarName: string, url: string): string; /** Parse an auth method; returns undefined when unset so the caller can default. */ export declare function parseAuthMethod(method?: string): AuthMethod | undefined; /** Parse a query engine; returns undefined when unset so the caller can default. */ export declare function parseQueryEngine(engine?: string): QueryEngine | undefined; //# sourceMappingURL=option-parsers.d.ts.map