export default Switch; type Switch = { $on?(type: string, callback: (e: any) => void): () => void; $set?(props: Partial>): void; }; /** * A variant of ``, looking like a switch that can be often seen on mobile apps. * @see https://w3c.github.io/aria/#switch * @see https://www.w3.org/WAI/ARIA/apg/patterns/switch/ */ declare const Switch: import("svelte").Component<{ /** * Text label displayed next to the switch. */ label?: string | undefined; /** * The `class` attribute on the wrapper element. */ class?: string | undefined; /** * Whether to hide the widget. */ hidden?: boolean | undefined; /** * Whether to disable the widget. An alias of the `aria-disabled` * attribute. */ disabled?: boolean | undefined; /** * Whether to make the widget read-only. An alias of the * `aria-readonly` attribute. */ readonly?: boolean | undefined; /** * Whether to mark the widget required. An alias of the * `aria-required` attribute. */ required?: boolean | undefined; /** * Whether to mark the widget invalid. An alias of the * `aria-invalid` attribute. */ invalid?: boolean | undefined; /** * The `aria-label` attribute on the wrapper element. */ ariaLabel?: string | undefined; /** * Primary slot content. */ children?: Snippet<[]> | undefined; /** * Custom `Change` event handler. */ onChange?: ((event: CustomEvent) => void) | undefined; } & Record, {}, "checked">; type Props = { /** * Text label displayed next to the switch. */ label?: string | undefined; /** * The `class` attribute on the wrapper element. */ class?: string | undefined; /** * Whether to hide the widget. */ hidden?: boolean | undefined; /** * Whether to disable the widget. An alias of the `aria-disabled` * attribute. */ disabled?: boolean | undefined; /** * Whether to make the widget read-only. An alias of the * `aria-readonly` attribute. */ readonly?: boolean | undefined; /** * Whether to mark the widget required. An alias of the * `aria-required` attribute. */ required?: boolean | undefined; /** * Whether to mark the widget invalid. An alias of the * `aria-invalid` attribute. */ invalid?: boolean | undefined; /** * The `aria-label` attribute on the wrapper element. */ ariaLabel?: string | undefined; /** * Primary slot content. */ children?: Snippet<[]> | undefined; /** * Custom `Change` event handler. */ onChange?: ((event: CustomEvent) => void) | undefined; }; import type { Snippet } from 'svelte';