import type { Ref } from '@stacksjs/stx'; /** * Watch a source with a custom event filter. * The filter receives the invoke function and decides when to call it. */ export declare function watchWithFilter(source: Ref, callback: (value: T) => void, eventFilter: EventFilter): () => void; export type EventFilter = (invoke: () => void) => void;