/** * Callback on any link click that is local to the server. * * @param {HTMLElement} root The root element to listen on. * @param {(href:string)=>void} cb The function to call on link click. */ export declare function CatchLinks(root: HTMLElement, cb: (href: string) => void, opts?: { handleAnchor?: boolean | ((href: string) => boolean); handleLink?: (href: string) => boolean; }): () => void; export declare namespace CatchLinks { var resolve: typeof import("./catch-links").resolve; } export default CatchLinks; /** * Resolve a local link to a full local path. * * @param {string} from * @param {string} to */ export declare function resolve(from: string, to: string): string; //# sourceMappingURL=catch-links.d.ts.map