export declare enum Flag { WorkspaceStorefrontEnabled = "WorkspaceStorefrontEnabled", SentryEnabled = "SentryEnabled", WorkspaceDockEnabled = "WorkspaceDockEnabled", WorkspaceHomeEnabled = "WorkspaceHomeEnabled", DevDebug = "DevDebug", HttpLanguagePacksEnabled = "HttpLanguagePacksEnabled" } export type WorkspaceFlags = Record; export declare const flags: Partial; /** * Initialize flags from overrides. This should be called early in the application lifecycle. * This is a no-op if flags have already been initialized. */ export declare const initializeFlags: () => Promise; /** * Flag Interface -- * * @example Enabled / Disabled Closures * flag( * 'feature', * () => 'Enabled Feature', * () => 'Disabled Feature' * ); * * @example Enabled only * flag('feature', myFeatureFunc); * * @example Boolean * flag('feature'); */ export declare function flag(flagName: Flag, cbEnabled?: () => EnabledReturn, cbDisabled?: () => DisabledReturn): EnabledReturn | DisabledReturn | boolean; declare global { interface Window { __WORKSPACE_FLAGS__: typeof flags; } }