/** * Refined jQuery plugin adapter for the Nepali date picker family. * * Fixes over the original * ──────────────────────── * 1. getValue returns first-element value – jQuery convention; the original * iterated every element and returned the last one. * * 2. Full method surface – added setValue, getState, and onChange to the * PluginMethod union; they exist on PickerInstance but were unreachable. * * 3. No-op container re-read removed – DateRangePicker was spreading options * and then re-assigning container from the same object (a no-op). * * 4. Deferred auto-init – instead of running once at import time (which fails * if jQuery loads after this module), we also listen for a custom * 'jquery:ready' hook and for the common pattern of jQuery being assigned * to window after DOMContentLoaded. * * 5. Typed generics – PickerInstance is parameterised with the correct result * types instead of unknown. * * Usage * ───── * // Init * $('#from').nepaliDateRangePicker({ mode: 'BS', numberOfMonths: 2 }); * * // Method calls * $('#from').nepaliDateRangePicker('show'); * $('#from').nepaliDateRangePicker('setValue', undefined, { start: d1, end: d2 }); * const val = $('#from').nepaliDateRangePicker('getValue'); // first element * $('#from').nepaliDateRangePicker('option', 'minDate', new Date()); * $('#from').nepaliDateRangePicker('destroy'); */ type JQueryLike = { fn: Record; data(el: Element, key: string, value?: unknown): unknown; }; export declare function install($: JQueryLike): void; export {};