import '../../assert/js/assert.js';
import '../../tandem/js/PhetioIDUtils.js';
import '../../globals.js';
import StrictOmit from '../../phet-core/js/types/StrictOmit.js';
import PhetioDataHandler, { PhetioDataHandlerOptions } from '../../tandem/js/PhetioDataHandler.js';
import IOType from '../../tandem/js/types/IOType.js';
import TEmitter, { TEmitterListener, TEmitterParameter } from './TEmitter.js';
import { TinyEmitterOptions } from './TinyEmitter.js';
type SelfOptions = Pick<TinyEmitterOptions, 'reentrantNotificationStrategy'>;
export type EmitterOptions = SelfOptions & StrictOmit<PhetioDataHandlerOptions, 'phetioOuterType'>;
export default class Emitter<T extends TEmitterParameter[] = []> extends PhetioDataHandler<T> implements TEmitter<T> {
    private readonly tinyEmitter;
    constructor(providedOptions?: EmitterOptions);
    /**
     * Emit to notify listeners
     */
    emit(...args: T): void;
    /**
     * Disposes an Emitter. All listeners are removed.
     */
    dispose(): void;
    /**
     * Adds a listener which will be called during emit.
     */
    addListener(listener: TEmitterListener<T>): void;
    /**
     * Removes a listener
     */
    removeListener(listener: TEmitterListener<T>): void;
    /**
     * Removes all the listeners
     */
    removeAllListeners(): void;
    /**
     * Checks whether a listener is registered with this Emitter
     */
    hasListener(listener: TEmitterListener<T>): boolean;
    /**
     * Returns true if there are any listeners.
     */
    hasListeners(): boolean;
    /**
     * Returns the number of listeners.
     */
    getListenerCount(): number;
    /**
     * Convenience function for debugging a Property's value. It prints the new value on registration and when changed.
     * @param name - debug name to be printed on the console
     * @returns - the handle to the listener added in case it needs to be removed later
     */
    debug(name: string): TEmitterListener<T>;
    /**
     * PhET-iO Type for Emitter.
     *
     * Providing validators to instrumented Emitters:
     * Instrumented Emitters should have their `validators` for each argument passed via EmitterIO (the phetioType).
     * To provide validators, there are two methods. First, by default each IOType has its own
     * validator that will be used. So specifying an argument object like `{ type: NumberIO }` will automatically use
     * `NumberIO.validator` as the validator. This can be overridden with the `validator` key (second option), like
     * { type: NumberIO, validator: { isValidValue: v=> typeof v === 'number' &&  v < 5 } }`
     * NOTE: currently the implementation is either/or, if a validator is provided via the `validator` key, the validator
     * from the `type` will be ignored.
     * see https://github.com/phetsims/axon/issues/204 for more details.
     *
     * @author Sam Reid (PhET Interactive Simulations)
     * @author Michael Kauzmann (PhET Interactive Simulations)
     * @author Andrew Adare (PhET Interactive Simulations)
     */
    static readonly EmitterIO: (parameterTypes: IOType[]) => IOType;
}
export {};
//# sourceMappingURL=Emitter.d.ts.map