/// export interface ContextFile { /** * string name of the repository */ repositoryName: string; /** * path to this file (relative to the repository) * @example src/file/inside/repository.txt */ path: string; /** * file contents */ buffer: Buffer; } export interface DestructuredPath { absolutePath: string; absoluteBundlePath: string; resourcePrefix?: string; /** * first folder under the resource prefix */ subdirectory?: string; /** * relative to the subdirectory */ filepath?: string; } export declare function destructurePath(absoluteFilePath: string, absoluteBundlePath: string): DestructuredPath; /** * * @param bundleLocation Path to the bundle location root * @param resourcePrefix bundle resource path e.g. 'src' * @param repositoryName name of the repo * @param filepath Path to the file within the repository * @returns ContextFile | undefined */ export declare function createContextFile(bundlepath: string, resourcePrefix: string, repositoryName: string, filepath: string): ContextFile | undefined; export declare function getAbsoluteContextFilePath(bundlepath: string, resourcePrefix: string, contextFile: ContextFile): string;