import type { model as amf } from 'amf-client-js'; export declare const AMF_RESOURCE_PREFIX = "file://"; export declare function pathToRamlResource(filePath: string): string; export declare function ramlResourceToPath(resource: string): string; export declare function resolveFileLocation(relLocation: string, document: amf.document.Document): string; /** * Joins relative paths together, normalizing out extra slashes, but maintaining * any preceding periods, so that the path is not bare. Useful for combining * paths to be used for node module resolution (since bare paths are treated * differently from relative paths). * * @param paths The array of paths to join * * @throws {Error} Does not support absolute paths */ export declare function relativePathJoin(...paths: string[]): string; /** * This function validates a string can be used as a filename. It's * conservative with which characters it allows (alpha-numeric plus * periods/dashes/underscores/spaces). There might be false negatives but there * shouldn't be false positives. * * @export * @param {string} name * @returns {boolean} */ export declare function isValidFileName(name: string): boolean; /** * * @param filePath * @param extension * @returns Filename without the extension */ export declare function getFileName(filePath: string, extension: string): string;