import { derived, get, writable, type Readable, type Writable } from 'svelte/store'; export const pipelineValues: Writable> = writable({}); export const deboucedPipelineValues: Readable> = derived( pipelineValues, ($pipelineValues, set) => { const debounced = setTimeout(() => { set($pipelineValues); }, 100); return () => clearTimeout(debounced); } ); export const getPipelineValues = () => get(pipelineValues);