export type FlyRepositoryConfig = { repositoryPath: string; arboristConfig?: any; }; type IntalledPackage = { name: string; path: string; realpath: string; pkgid: string; version: string; packageName: string; import: () => Promise; }; type NotIntalledPackage = { name: undefined; path: undefined; realpath: undefined; pkgid: string; version: undefined; packageName: undefined; import: () => Promise; }; export type FlyResultPackage = NotIntalledPackage | IntalledPackage; /** * @private */ export declare class FlyRepository { #private; private readonly arboristConfig; private _arborist?; private _repositoryPath; private nodeModulesPath; private _require?; constructor(config: FlyRepositoryConfig); /** * Repository absolute path (npm --prefix). */ get repositoryPath(): string; private set repositoryPath(value); load(): Promise; install(spec: string): Promise; install(spec: string[]): Promise; import(spec: string): Promise; private resolve; private findSpecs; } export declare const resetConfig: () => void; export declare const defineConfig: (config: Partial) => void; export declare const getConfig: () => FlyRepositoryConfig; export declare const getDefaultRepository: () => FlyRepository; export declare const flyInstall: (specifier: string, options?: FlyRepositoryConfig) => Promise; export declare const flyImport: (specifier: string, options?: FlyRepositoryConfig) => Promise; export {};