UNPKG

1.64 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
4 * This code may only be used under the BSD style license found at
5 * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
6 * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
7 * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
8 * Google as part of the polymer project is also subject to an additional IP
9 * rights grant found at http://polymer.github.io/PATENTS.txt
10 */
11import { CommandLineMeasurements } from './types';
12import commandLineUsage = require('command-line-usage');
13export declare const defaultInstallDir: string;
14export declare const optDefs: commandLineUsage.OptionDefinition[];
15export interface Opts {
16 help: boolean;
17 version: boolean;
18 root: string | undefined;
19 host: string;
20 port: number[];
21 config: string;
22 'package-version': string[];
23 'npm-install-dir': string;
24 browser: string | undefined;
25 'sample-size': number | undefined;
26 manual: boolean;
27 save: string;
28 measure: CommandLineMeasurements | undefined;
29 'measurement-expression': string | undefined;
30 horizon: string | undefined;
31 timeout: number | undefined;
32 'github-check': string;
33 'resolve-bare-modules': boolean | undefined;
34 'remote-accessible-host': string;
35 'window-size': string;
36 'force-clean-npm-install': boolean;
37 'csv-file': string;
38 'csv-file-raw': string;
39 'json-file': string;
40 _unknown?: string[];
41}
42/**
43 * Parse the given CLI argument list.
44 */
45export declare function parseFlags(argv: string[]): Opts;