export type { AuthArgv, AuthModule, AuthResolvedArgv } from "./types"; import type { AuthArgv } from "./types"; export type AuthMethod = "password" | "apiToken"; export declare const authModules: { password: { label: string; priority: number; options: { username: { alias: string; describe: string; default: string | undefined; defaultDescription: string; type: "string"; requiresArg: true; }; password: { alias: string; describe: string; default: string | undefined; defaultDescription: string; type: "string"; requiresArg: true; }; }; hiddenOptions: { username: { hidden: true; alias: string; describe: string; default: string | undefined; defaultDescription: string; type: "string"; requiresArg: true; }; password: { hidden: true; alias: string; describe: string; default: string | undefined; defaultDescription: string; type: "string"; requiresArg: true; }; }; check: (argv: AuthArgv) => boolean; clear: (argv: AuthArgv) => void; }; apiToken: { label: string; priority: number; options: { "api-token": { describe: string; default: string | undefined; defaultDescription: string; type: "array"; string: true; requiresArg: true; }; }; hiddenOptions: { "api-token": { hidden: true; describe: string; default: string | undefined; defaultDescription: string; type: "array"; string: true; requiresArg: true; }; }; check: (argv: AuthArgv) => boolean; clear: (argv: AuthArgv) => void; }; }; export declare const checkAuth: (methods: readonly AuthMethod[], argv: AuthArgv) => true; export declare const resolveAuthPriority: (methods: readonly AuthMethod[], argv: AuthArgv) => void;