/** * The experimental features a P1 editor can have turned on for it, and the LaunchDarkly * flag key each one is gated by. * * Applications name the feature, never the flag key: the key has to match the * LaunchDarkly dashboard, and which key backs a feature is Pantheon's to change. */ export declare const P1_EXPERIMENTAL_FEATURE_FLAGS: { /** Comment threads on blocks, pages and other addressable content. */ readonly threads: "p1-collaboration"; /** The AI chat panel and "Generate with AI" in the editor. */ readonly chatbot: "p1-chatbot"; /** Demo-only go-live screens with mocked data. Throwaway; remove with the demo folder. */ readonly goLiveStub: "p-1-go-live-stub"; /** Offering to put a new page in its section when its slug is a path. */ readonly sectionNesting: "p1-section-nesting"; /** Editing and deleting your own comment messages. */ readonly commentEditDelete: "p1-comment-edit-delete"; }; export type P1ExperimentalFeature = keyof typeof P1_EXPERIMENTAL_FEATURE_FLAGS; export declare const P1_EXPERIMENTAL_FEATURES: P1ExperimentalFeature[]; /** * The features whose flag has a rule on the Business account. Only these wait for the * Business account and re-evaluate once it arrives; every other feature is answered * from the user and site alone and is never changed afterwards. A feature belongs here * before a rule on `business-account` is added to its flag. */ export declare const BUSINESS_ACCOUNT_TARGETED_FEATURES: readonly P1ExperimentalFeature[]; /** Every experimental feature off. What an unanswered LaunchDarkly resolves to. */ export type P1ExperimentalFeatureSet = Record; export declare const ALL_OFF: P1ExperimentalFeatureSet; /** * Whether one experimental feature is on, reading its flag through `valueOf`. * * Only a literal `true` turns a feature on, so a missing flag, a null and a non-boolean * all read as off. */ export declare function readFeature(feature: P1ExperimentalFeature, valueOf: (flagKey: string) => unknown): boolean; /** * Every experimental feature's state. Reads only the flags that gate a feature, one * `readFeature` per feature. */ export declare function readFeatures(valueOf: (flagKey: string) => unknown): P1ExperimentalFeatureSet;