/** * React hook that asks the PieUI backend whether a named feature/component is * supported for the current user, and returns the boolean answer. * * The hook maintains two module-level caches: * - `resultCache` stores resolved answers for the rest of the session, so * only the first caller actually hits the network; * - `inflightCache` deduplicates concurrent requests for the same * `(apiServer, name)` pair, so multiple components mounting in the same * tick share one fetch. * * While the answer is being fetched the hook returns `null`, which callers * can use to show a neutral/loading state. * * @param apiServer Base URL of the PieUI API server. * @param name Feature/component identifier passed as `api/support/{name}`. * @returns `true`/`false` once known, or `null` while loading. */ export declare function useIsSupported(apiServer: string, name: string): boolean | null; //# sourceMappingURL=useIsSupported.d.ts.map