/** * @name excludeFileExtension * @description fileExtension 을 제거합니다. */ export declare function excludeFileExtension(name: string): string; /** * @name excludeRelativePath * @description path 에 상대경로를 제거합니다. * @example * ```ts * excludeRelativePath("./index.tsx") // "index.tsx" * excludeRelativePath("./list/detail.tsx") // "list/detail.tsx" * excludeRelativePath("../../index.tsx") // "index.tsx" * ``` */ export declare function excludeRelativePath(filePath: string): string; /** * @name excludeDynamicNamePattern * @description dynamic route 패턴의 `[` `]` 를 제거합니다. * @example * ```ts * excludeDynamicNamePattern("[id]") // "id" * excludeDynamicNamePattern("[id]/[name]") // "id/name" * ``` */ export declare function excludeDynamicNamePattern(filePath: string): string; /** * @name getRoutePath * @description route 할 path 로 변환합니다. * @example * ```ts * getRoutePath('./index.tsx') // "/" * getRoutePath('./list/index.tsx') // "/list" * getRoutePath('./list/detail.tsx') // "/list/detail" * getRoutePath('./list/[id].js') // "/list/:id" * ``` */ export declare function getRoutePath(filePath: string): string; /** * @name getFileNameFromPath * @description 파일 경로에서 파일명을 추출합니다. * @example * ```ts * getFileNameFromPath('/path/to/file.txt') // "file.txt" * getFileNameFromPath('file.txt') // "file.txt" * getFileNameFromPath('') // "" * getFileNameFromPath('/path/to/directory/') // "" * getFileNameFromPath('/path/to/file.txt', { withExtension: false }) // "file" * ``` */ export declare function getFileNameFromPath(filePath: string, options?: { withExtension?: boolean; }): string;