import { AuthFlowState, StateDefinition } from './auth-flow-state-machine.types'; /** * Authentication Flow State Definitions * * Defines all possible states in the authentication flow with their: * - Priority (evaluation order, 1-9) * - Condition rules (when state applies) * - Challenge mappings (which AuthChallenge this state maps to) * - Metadata builders (optional additional response data) * - OnEnter hooks (optional actions when state is entered) * * States are evaluated in priority order. The first state whose condition * evaluates to true is selected. * * @example * ```typescript * const state = STATE_DEFINITIONS.find(def => def.condition(context)); * ``` */ export declare const STATE_DEFINITIONS: StateDefinition[]; /** * Get state definition by state * * @param state - State to get definition for * @returns State definition or undefined if not found * * @example * ```typescript * const def = getStateDefinition(AuthFlowState.PENDING_EMAIL_VERIFICATION); * ``` */ export declare function getStateDefinition(state: AuthFlowState): StateDefinition | undefined; /** * Get state definitions sorted by priority * * @returns State definitions sorted by priority (1-9) * * @example * ```typescript * const sorted = getStateDefinitionsByPriority(); * // Evaluates states in order: PENDING_PASSWORD_CHANGE, PENDING_EMAIL_VERIFICATION, ... * ``` */ export declare function getStateDefinitionsByPriority(): StateDefinition[]; //# sourceMappingURL=auth-flow-state-definitions.d.ts.map