import { RedirectOptions } from '@frontegg/rest-api'; import { EnhancedStore } from '@frontegg/redux-store'; export interface PrivateOptions { /** * Option to open admin portal as Preview mode without HTTP requests for demo mode purpose */ previewMode?: boolean; /** * Option to display login box as Preview mode without HTTP requests for builder customization mode purpose */ builderMode?: boolean; /** * Option to detect hosted login runtime to control some features (i.e. when running admin-box from oauth) */ hostedRuntime?: boolean; /** * Connect AdminPortal redirects with the wrapper application router */ onRedirectTo?: (path: string, options?: RedirectOptions) => void; /** * Pass Redux store object created by create Frontegg Store to manage actions and state of the frontegg application * mostly used when building your own components. */ store?: EnhancedStore; /** * Option to open admin portal as Preview mode without HTTP requests for demo mode purpose */ framework?: 'nextjs' | 'react' | 'angular' | 'vuejs' | 'flutter'; /** * Option to lazy load admin portal for reduce resources on first load * default: false */ lazyLoadAdminPortal?: boolean; /** * Option to override specific featureFlags for debug purposes * default: undefined */ overrideFeatureFlags?: Record; /** * Open App route will be used to redirect user to the app after login * default: false */ enableOpenAppRoute?: boolean; /** * Open AdminPortal in multi app mode * default: false */ isMultiApp?: boolean; /** * Builder mode fiber update listener */ onFiberUpdateListener?: () => void; }