/** * @lasmind/website-accessibility: the LasMind accessibility menu for any website. * Same features as the LasMind website menu and the LasMind Vision * extension, from @lasmind/website-accessibility-core. No framework needed. */ import { type A11ySettings } from "@lasmind/website-accessibility-core"; import { VERSION } from "./version"; export type { A11ySettings } from "@lasmind/website-accessibility-core"; export { VERSION }; export type WidgetOptions = { /** * localStorage key for settings. Default is the shared "lasmind-a11y-settings" * (the old "lasmind-a11y-widget" is still read once). A custom key is used * as is, with no migration. */ storageKey?: string; /** Corner for the floating button. Default "right". */ side?: "left" | "right"; /** Where the widget is added. Default document.body. */ container?: HTMLElement; /** Show the "Powered by LasMind" link. Default true. */ showCredit?: boolean; /** * Check lasmind.com at most once a day for a newer version of this package. Off by default. * A newer version is logged to the browser console, and shown in the menu on localhost only; * visitors never see it. The request carries no settings or personal data. */ updateCheck?: boolean; }; export type WidgetHandle = { open(): void; close(): void; getSettings(): A11ySettings; setSettings(patch: Partial): void; destroy(): void; }; export declare function init(options?: WidgetOptions): WidgetHandle; /** `` */ export declare class LasmindA11yElement extends HTMLElement { private handle; connectedCallback(): void; disconnectedCallback(): void; } export declare function defineElement(name?: string): void;