/** * jQuery adapter for TouchSpin using standalone adapter * * This adapter wraps the standalone mount API with a jQuery plugin interface, * maintaining 100% backward compatibility with the legacy jQuery plugin API. */ import type { TouchSpinCorePublicAPI } from '@touchspin/core'; import type { MountOptions } from '@touchspin/standalone'; export type { TouchSpinUpdateSettingsData } from '@touchspin/core'; export { TouchSpinCallableEvent, TouchSpinEmittedEvent } from '@touchspin/core'; type JQueryInst = { each: (cb: (this: Element) => void) => JQueryInst; on: (...args: unknown[]) => JQueryInst; off: (...args: unknown[]) => JQueryInst; trigger: (...args: unknown[]) => JQueryInst; }; type JQueryStatic = { fn: Record & { TouchSpin?: (options?: unknown, arg?: unknown) => unknown; }; (selector: Element | string): JQueryInst; }; /** * Install jQuery plugin that uses standalone adapter * @param $ - jQuery instance * @param mountFn - Mount function from standalone adapter (e.g., from @touchspin/standalone/bootstrap5) */ export declare function installJQueryAdapter($: JQueryStatic, mountFn: (host: Element | string, opts?: MountOptions) => TouchSpinCorePublicAPI | null): void; /** * Auto-install jQuery adapter if jQuery is available on window * @param mountFn - Mount function from standalone adapter */ export declare function autoInstall(mountFn: (host: Element | string, opts?: MountOptions) => TouchSpinCorePublicAPI | null): void; //# sourceMappingURL=index.d.ts.map