/** * Remove accents/diacritics from a string. * @see https://stackoverflow.com/questions/990904/remove-accents-diacritics-in-a-string-in-javascript * @see https://medium.com/nerd-for-tech/basics-of-javascript-string-normalize-method-f3241174c2d0 * @see https://www.codu.co/articles/remove-accents-from-a-javascript-string-skgp1inb * * @param str string from which to remove accents * @returns string w/o accents */ export declare const removeAccents: (str: string) => string; /** * Search items by query string, returning matches sorted by position. * Accent-insensitive search. */ export declare const search: (source: I[], query: string | undefined, textual: (i: I) => string) => I[]; /** * Normalize source to an array. */ export declare const normalize: (source: I[] | false | null | undefined) => I[]; /** * Dispatch a custom event with detail. */ export declare const notify: (host: EventTarget, name: string, detail: T) => boolean; export declare const EMPTY: never[]; type Arr = unknown[]; type ArrFn = (...args: T) => void; /** * Request animation frame wrapper with cleanup. */ export declare const raf: = ArrFn>(fn: F) => (...args: A) => () => void; export {};