/** * Reactive effects. */ import { CleanupFn } from './internals'; /** * Creates a side effect that automatically re-runs when dependencies change. * * The effect runs immediately upon creation and then re-runs whenever * any signal or computed value read inside it changes. * * If created inside an {@link effectScope}, the effect is automatically * collected and will be disposed when the scope stops. * * @param fn - The effect function to run * @returns A cleanup function to stop the effect */ export declare const effect: (fn: () => void | CleanupFn) => CleanupFn; //# sourceMappingURL=effect.d.ts.map