bpms_site/.svn/pristine/19/195962a45330c4f8d240e84acf1f23f3f256c870.svn-base
2025-11-02 16:38:49 +03:30

19 lines
753 B
Plaintext

import { Normalizer } from './normalizer';
/**
* Normalizes a given filename so that it's relative to the provided directory.
* It will also strip the extension (if provided) and the trailing `/index`.
*/
export declare class AbsoluteFilenameNormalizer implements Normalizer {
private readonly dir;
private readonly extensions;
private readonly pagesType;
/**
*
* @param dir the directory for which the files should be made relative to
* @param extensions the extensions the file could have
* @param keepIndex when `true` the trailing `/index` is _not_ removed
*/
constructor(dir: string, extensions: ReadonlyArray<string>, pagesType: 'pages' | 'app' | 'root');
normalize(filename: string): string;
}