import type { CommandContext } from "@tooee/commands"; import type { NavigateHandle, RouteDefinition } from "@tooee/router"; export interface LinkTarget { href: string; /** Directory that relative targets resolve against. */ baseDir: string; /** Source document for fragment-only links. */ currentPath?: string; } export interface LinkHandlerContext { navigate: NavigateHandle; documentRoute: RouteDefinition<{ path?: string; }>; command: CommandContext; } /** Decide synchronously: true consumes the link, false tries the next handler. */ export type LinkHandler = (link: LinkTarget, context: LinkHandlerContext) => boolean; export declare const localFileLinkHandler: LinkHandler; export declare const runLinkHandlers: (handlers: readonly LinkHandler[], link: LinkTarget, context: LinkHandlerContext) => boolean; //# sourceMappingURL=link-handlers.d.ts.map