// @ts-nocheck // nocheck because we don't want to adjust this anymore (only used for Svelte 3) // 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 // If you change anything in this file, think about whether or not it should also be added to svelte-shims-v4.d.ts // -- start svelte-ls-remove -- declare module '*.svelte' { type _SvelteComponent = import("svelte").SvelteComponentTyped; export default _SvelteComponent } // -- end svelte-ls-remove -- /** * @deprecated This will be removed soon. Use `SvelteComponentTyped` instead: * ```ts * import type { SvelteComponentTyped } from 'svelte'; * ``` */ 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) | null | undefined): () => 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 `