import { HelpfulError } from 'helpful-errors'; import { type NotUndefined } from 'type-fns'; import type { IsoDuration } from '../../domain.objects/IsoDuration'; export declare class WaitForTimedOutError extends HelpfulError { } /** * tactic * .what: wait for an output * .why: * - enables waiting until some desired result is ready * - ensures best practices and a pit of success contract * - uses readable names for maintainability */ export declare const waitFor: (extractor: () => Promise, options?: { /** * the interval at which to check for completion */ interval?: IsoDuration; /** * the maximum duration to wait for, until timeout */ timeout?: IsoDuration; }) => Promise>;