/**
 * @file `socket-lib check primordials` handler. Loads a JSON config from disk
 *   (default `primordials-coverage.config.json` at the repo root, override with
 *   `--config <path>`), runs the drift check, and renders the result.
 *   socket-lib check primordials socket-lib check primordials --config
 *   ./primordials.config.json socket-lib check primordials --json #
 *   machine-readable output socket-lib check primordials --explain # one
 *   detailed line per finding socket-lib check primordials --silent # silent on
 *   success Exit codes: 0 — no drift 1 — drift detected (or config / lookup
 *   error)
 */
import { type PrimordialsCheckConfig, type PrimordialsCheckResult, type PrimordialsFinding } from '../checks/primordials';
interface ParsedArgs {
    readonly config: string | undefined;
    readonly json: boolean;
    readonly explain: boolean;
    readonly silent: boolean;
    readonly help: boolean;
}
export declare function parseArgs(argv: readonly string[]): ParsedArgs;
/**
 * Pick the config file. Returns the explicit `--config` argument when given
 * (even if it doesn't exist — the caller will surface the error with the path
 * they typed). Otherwise probes the fallback list in order and returns the
 * first hit. Returns the head of the list when none exist, so the caller's
 * "config file not found" error message names the canonical default.
 */
export declare function resolveConfigPath(explicit: string | undefined): string;
export declare function printHelp(): void;
export declare function loadConfig(configPath: string): PrimordialsCheckConfig;
interface SerializedFinding {
    kind: PrimordialsFinding['kind'];
    name: string;
    files: readonly string[];
    hint: string;
}
export declare function serialize(result: PrimordialsCheckResult): {
    ok: boolean;
    used: number;
    findings: SerializedFinding[];
};
export declare function renderHuman(result: PrimordialsCheckResult, args: ParsedArgs): void;
export declare function runCheckPrimordials(argv: readonly string[]): Promise<number>;
export {};
