import type { ActiveOptions } from './types.js'; export type { ActiveOptions } from './types.js'; /** * Svelte Action for automatically adding the "active" class to elements (links, or any other DOM element) when the current location matches a certain path. * * @param node - The target node (automatically set by Svelte) * @param opts - Can be an object of type `ActiveOptions`, or a string (or regular expression) representing `ActiveOptions.path`. * @returns Destroy function */ export default function active(node: HTMLElement, opts?: ActiveOptions | string | RegExp): { destroy(): void; };