type AsyncTuple = { error: ErrorType; data: null; } | { error: null; data: DataType; }; /** * Gracefully handles a given Promise factory. * @example * const { error, data } = await until(() => asyncAction()) */ declare const until: (promise: () => Promise) => Promise>; export { until };