import type { ParseArgsConfig } from "node:util"; /** Default axe server URL for Deque SaaS prod. */ export declare const DEFAULT_WALNUT_URL = "https://axe.deque.com"; /** Common configuration the CLI verbs share. */ export interface CommonArgs { /** axe server URL (walnut). */ walnutURL: string; /** Whether non-loopback http walnut/issuer URLs are permitted. */ allowInsecureIssuer: boolean; } /** * `parseArgs`-shaped options shared by every CLI verb. `parseArgs` * doesn't support `--no-` boolean negation natively, so the opt-out * is registered as its own flag and `parseCommonArgs` rejects passing * both together. */ export declare const COMMON_OPTIONS: NonNullable; /** Subset of `parseArgs(...).values` this helper consumes. */ export interface ParsedCommonValues { server?: string; "allow-insecure-issuer"?: boolean; "no-allow-insecure-issuer"?: boolean; } /** Stored fallback for `allowInsecureIssuer` + the `walnutURL` it was minted against. */ export interface StoredCommonDefaults { walnutURL: string; allowInsecureIssuer: boolean; } /** * Resolves common configuration from parsed flag values, falling * back to `AXE_SERVER_URL` and finally to `DEFAULT_WALNUT_URL`. * `allowInsecureIssuer` falls back to `defaults` only when the * resolved walnut URL matches `defaults.walnutURL`. */ export declare function parseCommonArgs(values: ParsedCommonValues, env?: NodeJS.ProcessEnv, defaults?: StoredCommonDefaults | null): CommonArgs;