import type { UdpTag, UdpTagAssociation } from 'udp-stencil-component-library'; /** Business keys are `|`; the map is keyed by the id. */ export declare const tagsForBusinessKey: (tagMap: ReadonlyMap, businessObjectKey: unknown) => UdpTag[]; /** * The query for one entity type's tag associations, selected into the * `Map` — shared by `useTags` and by callers that need * several entity types at once through `useQueries` (the inquiry tree rows). */ export declare const tagQueryOptions: (entityBusinessKeyPrefix: string) => { queryKey: readonly ["udpTagAssociation/search", string]; queryFn: () => Promise; select: (associations: UdpTagAssociation[]) => Map; }; export interface UseTagsResult { tagMap: ReadonlyMap; isLoading: boolean; error: Error | null; } /** * Fetch and cache tag associations for every record of a single entity type. * * Pass a type-only prefix ending in `|` — e.g. * `Univerus.Unity.Starter.Project.Models.ChargeCodeTask|`. * * Returns a `Map` keyed by the GUID portion of the * business key. The query is shared across the app via TanStack Query, so * multiple components calling this hook with the same prefix dedupe to a * single request and stay in sync on invalidation. */ export declare const useTags: (entityBusinessKeyPrefix: string, options?: { enabled?: boolean; }) => UseTagsResult; //# sourceMappingURL=useTags.d.ts.map