export type CustomElementDefinition = { observedAttributes?: string[]; render?: (this: HTMLElement, props: Record) => void; connectedCallback?: (this: HTMLElement) => void; disconnectedCallback?: (this: HTMLElement) => void; attributeChangedCallback?: (this: HTMLElement, name: string, oldValue: string, newValue: string) => void; }; type AmbientEffectFunction = (el: Element, attrs: Record) => void; /** * Register an Effect Handler as a Custom Element in the DOM * * ## Examples * * ### Create a simple effect handler * ```ts * import { AmbientEffect, asap } from 'rimmel'; * * AmbientEffect('browser-console', (el, { log }) => { * asap(log, console.log); * } * ``` **/ export declare const AmbientEffect: (tagName: string, initFn: AmbientEffectFunction) => void; export {}; //# sourceMappingURL=ambient-effect.d.ts.map