// Whenever a ambient declaration changes, its number should be increased // This way, we avoid the situation where multiple ambient versions of svelte2tsx // are loaded and their declarations conflict each other // See https://github.com/sveltejs/language-tools/issues/1059 for an example bug that stems from it // -- start svelte-ls-remove -- declare module '*.svelte' { export default Svelte2TsxComponent } // -- end svelte-ls-remove -- declare class Svelte2TsxComponent< Props extends {} = {}, Events extends {} = {}, Slots extends {} = {} > { // svelte2tsx-specific /** * @internal This is for type checking capabilities only * and does not exist at runtime. Don't use this property. */ $$prop_def: Props; /** * @internal This is for type checking capabilities only * and does not exist at runtime. Don't use this property. */ $$events_def: Events; /** * @internal This is for type checking capabilities only * and does not exist at runtime. Don't use this property. */ $$slot_def: Slots; // https://svelte.dev/docs#Client-side_component_API constructor(options: Svelte2TsxComponentConstructorParameters); /** * Causes the callback function to be called whenever the component dispatches an event. * A function is returned that will remove the event listener when called. */ $on(event: K, handler: (e: Events[K]) => any): () => void; /** * Removes a component from the DOM and triggers any `onDestroy` handlers. */ $destroy(): void; /** * Programmatically sets props on an instance. * `component.$set({ x: 1 })` is equivalent to `x = 1` inside the component's `