/** * Variables: * * `rootLegalEntityId` */ export type QueryKeyAssociatedLegalEntities = ['associatedLegalEntities', string]; /** * Retrieves every legal entity associated with the root, recursively, for the debug modal. * * Unlike `useLegalEntities(ids)`, which needs every ID upfront, nested IDs here are only * discovered while walking, so the whole walk runs inside a single query: one loading/error * state for the tree, cached under `['associatedLegalEntities', rootId]`. * * Each legal entity is still fetched through `legalEntityQueryOptions`, i.e. the same * `['legalEntity', id]` cache entry `useLegalEntity` uses, so already-loaded legal entities * aren't refetched and anything fetched here is reused by the rest of the app. */ export declare const useAssociatedLegalEntities: () => import("@tanstack/preact-query").UseQueryResult;