import type { App } from 'vue'; import type { BreadcrumbLeafHandle } from './types'; /** App-scoped map of `:leaf-id` → leaf handle, for the rare two-breadcrumb case. */ export type BreadcrumbLeafRegistry = Map; export declare function provideBreadcrumbLeafRegistry(registry?: BreadcrumbLeafRegistry, app?: App): BreadcrumbLeafRegistry; export declare function injectBreadcrumbLeafRegistry(app?: App): BreadcrumbLeafRegistry | undefined; /** * Override the current (leaf) crumb's label — the one imperative seam for * dynamic `/:id` page titles. Resolve in page `setup` (e.g. after * `useAsyncData`); the override auto-clears when the route changes. * * Targeting (the "both" decision): with no `id`, the nearest ancestor * `` is targeted (zero config, the 99% case). Pass an `id` * matching a `` to disambiguate when two * breadcrumbs co-exist (e.g. a layout breadcrumb + a section-local one). * * ```ts * const { set } = useBreadcrumbLeaf(); * const { data } = await useAsyncData(() => fetchUser(route.params.id)); * watchEffect(() => data.value && set(data.value.name)); * ``` */ export declare function useBreadcrumbLeaf(id?: string): BreadcrumbLeafHandle; //# sourceMappingURL=use-breadcrumb-leaf.d.ts.map