import type { Node } from '@markdoc/markdoc'; /** * Extracts an RBAC team identifier from a conditional Markdoc node. * * This function analyzes an `if` conditional node to determine if it contains * an `includes` function call that checks for RBAC team membership. It specifically * looks for conditions of the form `includes(rbac.teams, "team-name")`. * * @param node - The Markdoc conditional node with tag 'if' to analyze. * @returns The team name as a string if the condition matches the expected RBAC pattern, otherwise `null`. * * @example * ```typescript * // For a node representing: {% if includes(rbac.teams, "admin") %} * const teamName = extractRbacFromCondition(node); * // Returns: "admin" * ``` */ export declare function extractRbacFromCondition(node: Node & { tag: 'if'; }): string | null; //# sourceMappingURL=extract-rbac-from-condition-node.d.ts.map