PATH:
opt
/
bitninja-threat-hunting
/
node_modules
/
yargs
/
build
/
lib
import { Dictionary } from './common-types'; import { UsageInstance } from './usage'; import { YargsInstance, Arguments } from './yargs'; import { DetailedArguments } from 'yargs-parser'; import { Y18N } from 'y18n'; export declare function validation(yargs: YargsInstance, usage: UsageInstance, y18n: Y18N): ValidationInstance; /** Instance of the validation module. */ export interface ValidationInstance { check(f: CustomCheck['func'], global: boolean): void; conflicting(argv: Arguments): void; conflicts(key: string | Dictionary<string | string[]>, value?: string | string[]): void; customChecks(argv: Arguments, aliases: DetailedArguments['aliases']): void; freeze(): void; getConflicting(): Dictionary<(string | undefined)[]>; getImplied(): Dictionary<KeyOrPos[]>; implications(argv: Arguments): void; implies(key: string | Dictionary<KeyOrPos | KeyOrPos[]>, value?: KeyOrPos | KeyOrPos[]): void; isValidAndSomeAliasIsNotNew(key: string, aliases: DetailedArguments['aliases']): boolean; limitedChoices(argv: Arguments): void; nonOptionCount(argv: Arguments): void; positionalCount(required: number, observed: number): void; recommendCommands(cmd: string, potentialCommands: string[]): void; requiredArguments(argv: Arguments): void; reset(localLookup: Dictionary): ValidationInstance; unfreeze(): void; unknownArguments(argv: Arguments, aliases: DetailedArguments['aliases'], positionalMap: Dictionary, isDefaultCommand: boolean): void; unknownCommands(argv: Arguments): boolean; } interface CustomCheck { func: (argv: Arguments, aliases: DetailedArguments['aliases']) => any; global: boolean; } export declare type KeyOrPos = string | number; export {};
[-] apply-extends.js
[edit]
[-] is-promise.d.ts
[edit]
[-] apply-extends.d.ts
[edit]
[-] completion-templates.js
[edit]
[-] yargs.js
[edit]
[-] obj-filter.js
[edit]
[-] common-types.d.ts
[edit]
[-] parse-command.d.ts
[edit]
[-] usage.js
[edit]
[-] argsert.d.ts
[edit]
[-] completion.js
[edit]
[+]
..
[-] common-types.js
[edit]
[-] process-argv.d.ts
[edit]
[-] is-promise.js
[edit]
[-] validation.js
[edit]
[-] parse-command.js
[edit]
[-] validation.d.ts
[edit]
[-] argsert.js
[edit]
[-] middleware.d.ts
[edit]
[-] middleware.js
[edit]
[-] process-argv.js
[edit]
[-] levenshtein.d.ts
[edit]
[-] command.js
[edit]
[-] usage.d.ts
[edit]
[-] yargs.d.ts
[edit]
[-] yerror.d.ts
[edit]
[-] levenshtein.js
[edit]
[-] command.d.ts
[edit]
[-] yerror.js
[edit]
[-] completion.d.ts
[edit]
[-] completion-templates.d.ts
[edit]
[-] obj-filter.d.ts
[edit]