export declare function validateSegment(segment: string, file?: string): void;