import { BaseRecipeModule } from "./baseRecipeModule"; import type { NormalisedConfig } from "./types"; import type { Navigate, NormalisedGetRedirectionURLContext, UserContext } from "../../types"; export default abstract class RecipeModule< GetRedirectionURLContextType, Action, OnHandleEventContextType, N extends NormalisedConfig > extends BaseRecipeModule { redirect: ( context: NormalisedGetRedirectionURLContext, navigate: Navigate | undefined, queryParams?: Record, userContext?: UserContext ) => Promise; getRedirectUrl: ( context: NormalisedGetRedirectionURLContext, userContext: UserContext ) => Promise; getDefaultRedirectionURL( _: NormalisedGetRedirectionURLContext, _userContext: UserContext ): Promise; }