export declare function inSegment(...predicates: boolean[]): boolean; export declare function when(condition: () => boolean | Promise, action?: (() => T | Promise) | null, timeout?: number): Promise;