export default function assertIsDirectory(path: string, mode: 'exit' | 'throw'): string;