import type { Ref } from '@stacksjs/stx'; /** * Two-way sync between two refs. * * @param left - First ref * @param right - Second ref * @param options - Sync direction options * @returns A stop function to cancel the sync */ export declare function syncRef(left: Ref, right: Ref, options?: SyncRefOptions): () => void; /** * Sync multiple source refs to a target ref. * * @param sources - Array of source refs * @param target - Target ref that will be updated when any source changes * @returns A stop function to cancel all watches */ export declare function syncRefs(sources: Ref[], target: Ref): () => void; export declare interface SyncRefOptions { direction?: 'ltr' | 'rtl' | 'both' }