import { Ref } from '@vue/reactivity';

export declare const createRefSyncState: <T>(initState: T, config: SyncStateConfig<T>) => {
    state: Ref<T>;
    syncWatchHandle: SyncWatchHandle;
};

export declare interface SyncStateConfig<T> {
    channelPrefix: string;
    debug?: boolean;
    onChange?: (value: T) => void;
}

declare interface SyncWatchHandle {
    pause: () => void;
    resume: () => void;
}

export { }
