import type { Ref } from '@stacksjs/stx'; /** * Watch a source, but only trigger the callback at most `count` times. */ export declare function watchAtMost(source: Ref, callback: (value: T) => void, count: number): { stop: () => void, remaining: Ref };