import type { MouseEvent } from 'react'; /** * Which clicks belong to the application and which belong to the browser. * * Every destination in the chrome is a real anchor with a real `href`, so a * middle click, a cmd-click and "open in new tab" keep working — those arrive * as a click too, and the modifiers are the only thing separating them from the * plain one. Taking all of them would break the three; taking none would fetch * the document again on every link in the header. * * One rule, in one place. The band, the desk and the panel behind the mark all * lead somewhere, and three copies of this are three answers waiting to * disagree about what a cmd-click means. * * `walk` is what a caller's router does with an address. Absent, nothing is * intercepted and the anchor is left to the browser, which is the honest * behaviour on a surface that has no router. * * Whether an address leaves this interface at all is asked one step earlier, * by `away` in `read/link`. It is the same question and it has one answer: * a second copy here read `//host/path` as ours and would have handed a * foreign host to the router. */ export declare const press: (to: string, walk?: (to: string) => void, done?: () => void) => (e: MouseEvent) => void; //# sourceMappingURL=press.d.ts.map