export default function first(candidates: ((...args: any[]) => Promise | T | void)[]): (...args: any[]) => Promise;