/** * Link helpers for client-side navigation. * @module bquery/router */ /** * Creates click handler for router links. * Attach to anchor elements to enable client-side navigation. * * @param path - Target path * @param options - Navigation options * @returns Click event handler * * @example * ```ts * import { link } from 'bquery/router'; * import { $ } from 'bquery/core'; * * $('#nav-home').on('click', link('/')); * $('#nav-about').on('click', link('/about')); * ``` */ export declare const link: (path: string, options?: { replace?: boolean; }) => ((e: Event) => void); /** * Intercepts all link clicks within a container for client-side routing. * Only intercepts links with matching origins and no target attribute. * * @param container - The container element to intercept links in * @returns Cleanup function to remove the listener * * @example * ```ts * import { interceptLinks } from 'bquery/router'; * * // Intercept all links in the app * const cleanup = interceptLinks(document.body); * * // Later, remove the interceptor * cleanup(); * ``` */ export declare const interceptLinks: (container?: Element) => (() => void); //# sourceMappingURL=links.d.ts.map