import type { SafeListener } from '../types.js'; /** * Resolves with `true` once the `emitter` activates with `value`. * Rejects if the emitter deactivates * Resolves with `false` if cancelled. * * Usually the boolean returned can be ignored... */ export declare function filter(emitter: SafeListener, condition: (arg: T) => boolean): Promise; /** Resolves once the `emitter` activates with `value`. Rejects if the emitter deactivates */ export declare const filterValue: (emitter: SafeListener, value: T) => Promise;