import { IFunction } from "./function-base.js"; declare const tag: unique symbol; export interface IEventSource { /** * This property is necessary because otherwise, TypeScript will allow * interchanging between event sources of different InputType's. * * Adding a property with the type InputType, will forbid interchanges * unless the InputType's are of the same shape. */ readonly [tag]: InputType; /** * Called by `lambda.addEventSource` to allow the event source to bind to this * function. * * @param target That lambda function to bind to. */ bind(target: IFunction): void; } export declare abstract class BaseEventSource implements IEventSource { readonly [tag]: InputType; abstract bind(target: IFunction): void; } export {};