export declare const MAX_SEGMENT_BYTES = 255; export declare const MAX_PATH_CHARS = 240; export declare class PathTooLongError extends Error { constructor(); } /** One path segment that is legal on Windows, macOS and Linux. Always applies the Windows rules. */ export declare function sanitizeSegment(raw: string, fallback?: string): string; export declare function splitName(name: string): { stem: string; ext: string; }; /** ` []`, safe on Windows and within the per-name byte limit. */ export declare function buildFileName(originalName: string, id: number | string): string; export declare function buildMatterFolderName(displayNumber: string | null | undefined, clientName: string | null | undefined, matterId: number): string; /** * Keeps `outDir + segments + fileName` within the Windows path limit by shortening the longest * folders first and then the file stem. The id tag and extension of the file name always survive. */ export declare function fitRelativePath(outDir: string, segments: readonly string[], fileName: string, maxChars?: number): { segments: string[]; fileName: string; }; //# sourceMappingURL=fsnames.d.ts.map