export default function ensurePath(p: string, exts?: string[]): string | undefined;