export type ImportStringResult = { /** Package name, or `'.'` for the current package */ packageName: string; /** Optional package version (default: empty string) */ version: string; /** * Optional import path (default: `'.'`). * If this is set to a non-default value, it will be normalized to start with `./`. */ importPath: string; }; /** * Parse an import path: usually this will be a standard JS import, but this function also allows * an optional `@version` suffix after the package name. * * Examples of supported import strings: * - `foo` * - `foo@1.2.3` * - `foo@1.2.3/path/to/file` * - `@foo/bar` * - `@foo/bar@1.2.3` * - `@foo/bar@1.2.3/path/to/file` * - `foo/lib/something$normalization.graphql` */ export declare function parseImportString(importString?: string): ImportStringResult; //# sourceMappingURL=parseImportString.d.ts.map