import type { FastifyInstance } from 'fastify';
/**
 * GET /api/features — return runtime feature flags for the client store.
 *
 * Registered AFTER the auth hook in server/index.ts, so this endpoint requires
 * a logged-in session. Login and setup pages use client-side defaults instead
 * (see web/src/lib/stores/features.svelte.ts); no feature-gated UI should
 * render on those pages.
 *
 * Also surfaces server capability bits alongside the typed feature flags:
 *   - `secretsStoreEnabled` reflects whether the encrypted secrets store
 *     was successfully initialized at boot. The bit was previously gated
 *     on the `STUDIOGRAPH_NEW_STORE` env flag too; the flag has been
 *     removed and the store is now unconditional, so this collapses to
 *     `hasSecretStore()` alone. Kept on the wire so older clients that
 *     check the bit keep working — they always see `true` in healthy
 *     deployments.
 */
export declare function registerFeaturesApiRoutes(fastify: FastifyInstance): Promise<void>;
