export declare const enum ValidationFlags { None = 0, RequireRoot = 1, RequireDirname = 2, RequireBasename = 4, RequireExtname = 8, RequireTrailingSeparator = 16, AllowRoot = 32, AllowDirname = 64, AllowBasename = 128, AllowExtname = 256, AllowTrailingSeparator = 512, AllowNavigation = 1024, AllowWildcard = 2048, /** Path must be a valid directory root */ Root = 545, /** Path must be a absolute */ Absolute = 2017, /** Path may be relative or absolute */ RelativeOrAbsolute = 2016, /** Path may only be a filename */ Basename = 260 } export declare function validate(path: string, flags?: ValidationFlags): string;