import { Id } from '../classes/id'; import { ContentTypeItem, ContentTypeComponent, ContentTypeMaterial } from './contenttypes'; export interface IdTypeAndContentFolderPath { id: Id | undefined; type: ContentTypeComponent | ContentTypeItem | ContentTypeMaterial | undefined; contentFolderPath: string | undefined; } /** * Inverse function to getPathFromId. Tries to extract the id and type from a given file path. * @param filePath absolute path to the file * @returns * id instance and type if the path matches the expected structure; if those can't be extracted, returns undefined * contentFolderPath is the path to the folder where the content folder is located (project root path) if it could be determined from the file path; otherwise undefined */ export declare function getIdAndTypeFromPath(filePath: string): IdTypeAndContentFolderPath | undefined;