import { Context, DependencyLike, ResourceManagerLike } from 'greybel-transpiler'; import { ASTChunkGreyScript } from 'greyscript-core'; import { ASTBase } from 'miniscript-core'; export declare enum DependencyType { Main = 0, Import = 1, Include = 2, NativeImport = 3 } export interface DependencyOptions { target: string; resourceManager: ResourceManagerLike; chunk: ASTChunkGreyScript; context: Context; type?: DependencyType | number; } export interface DependencyFindResult { dependencies: Map; } export interface DependencyFindResultWithMetadata extends DependencyFindResult { namespaces: string[]; literals: ASTBase[]; } export type ResourceDependencyMap = Map; export type DependencyCallStack = string[]; export declare class Dependency implements DependencyLike { target: string; id: string; resourceManager: ResourceManagerLike; chunk: ASTChunkGreyScript; dependencies: Map; context: Context; injections: Map; type: DependencyType | number; static generateDependencyMappingKey(relativePath: string, type: DependencyType): string; constructor(options: DependencyOptions); getId(): string; getNamespace(): string; fetchNativeImports(route: string, dependencies?: Map): Map; private resolve; findInjections(): Map; findDependencies(): DependencyFindResult; findDependenciesWithMetadata(): DependencyFindResultWithMetadata; }