export type { EvaluatedFeatureFlags } from "./helpers.js"; export declare function useFeatureFlag(key: string): boolean; /** * `"loading"` is the answer not having arrived yet. `"unavailable"` is the * flags being unreadable for this viewer (signed out, no action surface, or a * failed read); callers fail closed on it like `useFeatureFlag`, but can tell * it apart from a registered flag that evaluated off. */ export type FeatureFlagState = { status: "loading"; enabled: false; } | { status: "ready"; enabled: boolean; } | { status: "unavailable"; enabled: false; }; /** * Like `useFeatureFlag`, but reports whether the answer has arrived so a * surface can hold a skeleton instead of flashing its flag-off UI first. */ export declare function useFeatureFlagState(key: string): FeatureFlagState; export declare function useFeatureFlags(): Record;