import { type TeamLink, type TeamState } from './types.js'; /** * This function is used as an alternative reducer for invalid links. When the normal reducer comes * across invalid links, it defers to this function. * * Invalid links are actions that were flagged to be discarded by the MembershipResolver when * dealing with conflicting concurrent actions. * * Example: Bob invited Charlie, but concurrently Alice removed Bob from the team. Bob's invitation * of Charlie is now invalid, as well as anything resulting from that invitation (e.g. Charlie is * admitted, Charlie does stuff, etc.) * * Normally we just ignore these links and they don't affect state at all. However, there are some * situations where we need to pay attention. In the above example, we need to act as if Charlie was * removed from the team, and do some cleanup. */ export declare const invalidLinkReducer: (state: TeamState, link: TeamLink) => TeamState; //# sourceMappingURL=invalidLinkReducer.d.ts.map