import type { ComputedRef } from 'vue'; import type { BreadcrumbItem } from './types'; type MinimalRouteRecord = { path?: string; meta?: Record; }; type MinimalRoute = { path?: string; matched?: MinimalRouteRecord[]; }; /** * What a route record's `meta.breadcrumb` may hold. A string is shorthand * for `{ label }`; a function receives the resolved route. Returning * `undefined` / `[]` omits the record from the trail. */ export type BreadcrumbMeta = string | Partial | BreadcrumbItem[] | ((route: MinimalRoute) => BreadcrumbItem | BreadcrumbItem[] | undefined); export type UseBreadcrumbItemsOptions = { /** Prepend a fixed root crumb (e.g. Home) — there is no synthetic Home by default. */ home?: BreadcrumbItem; }; /** * The route-meta floor: derive breadcrumb items from `vue-router`'s * `route.matched`, reading each record's `meta.breadcrumb`. Soft `$route` * lookup (no static `vue-router` import) — router-free apps degrade to * `[]` (plus the optional `home`). Pure `computed`, so it is SSR-correct * and self-heals on back/forward + deep-link without any push/pop. */ export declare function useBreadcrumbItems(options?: UseBreadcrumbItemsOptions): ComputedRef; export {}; //# sourceMappingURL=use-breadcrumb-items.d.ts.map