1 | interface VersionPath {
|
2 | path: string;
|
3 | type: string;
|
4 | version: string;
|
5 | }
|
6 | interface PackageInfo extends VersionPath {
|
7 | name: string;
|
8 | }
|
9 | type FnString = () => string | undefined;
|
10 | /**
|
11 | * @name detectPackage
|
12 | * @summary Checks that a specific package is only imported once
|
13 | * @description A `@polkadot/*` version detection utility, checking for one occurence of a package in addition to checking for ddependency versions.
|
14 | */
|
15 | export declare function detectPackage({ name, path, type, version }: PackageInfo, pathOrFn?: FnString | string | false | null, deps?: PackageInfo[]): void;
|
16 | export {};
|