1 | import semver = require('../index');
|
2 | import SemVer = require('./semver');
|
3 |
|
4 | declare class Comparator {
|
5 | constructor(comp: string | Comparator, optionsOrLoose?: boolean | semver.Options);
|
6 |
|
7 | semver: SemVer;
|
8 | operator: '' | '=' | '<' | '>' | '<=' | '>=';
|
9 | value: string;
|
10 | loose: boolean;
|
11 | options: semver.Options;
|
12 | parse(comp: string): void;
|
13 | test(version: string | SemVer): boolean;
|
14 | intersects(comp: Comparator, optionsOrLoose?: boolean | semver.Options): boolean;
|
15 | }
|
16 |
|
17 | export = Comparator;
|