import { SignalLink } from "./SignalLink"; /** * Represents a connection of a callback to a signal. */ export interface SignalConnection { /** * Stop this connection from receiving further events permanently. * * @returns false if the connection has already been severed. */ disconnect(): boolean; /** * If set to false it prevents the handler from receiving the signals events. */ enabled: boolean; } /** * Implementation of SignalConnection, for internal use only. * @private */ export declare class SignalConnectionImpl any> implements SignalConnection { private link; /** * @param link The actual link of the connection. */ constructor(link: SignalLink); disconnect(): boolean; set enabled(enable: boolean); get enabled(): boolean; }