import z from "zod";
/**
 * Feature flag definition with key and Zod schema for parsing.
 */
export interface FeatureFlag<T = unknown> {
    key: string;
    schema: z.ZodType<T>;
}
/**
 * Extract the output type from a Zod schema.
 */
type InferSchemaType<T> = T extends z.ZodType<infer U> ? U : never;
/**
 * Convert a flag definitions object into a type with inferred return types.
 */
type FlagGetters<T extends Record<string, FeatureFlag>> = {
    readonly [K in keyof T]: InferSchemaType<T[K]["schema"]> | undefined;
};
/**
 * Feature flag definitions for AI service.
 *
 * To add a new flag, simply add a property here with key and schema:
 * ```
 * myNewFlag: {
 *   key: 'ai.my-new-flag',
 *   schema: z.number()
 * }
 * ```
 *
 * Then access it type-safely: `flags.myNewFlag`
 */
declare const FLAG_DEFINITIONS: {
    readonly metadataCacheMaxTotalSizeMB: {
        readonly key: "ai.metadata-cache-size-mb";
        readonly schema: z.ZodNumber;
    };
    readonly metadataCacheMaxSingleFileSizeMB: {
        readonly key: "ai.metadata-file-size-mb";
        readonly schema: z.ZodNumber;
    };
    readonly unifiedProviderEnabled: {
        readonly key: "superblocks.ai.provider.unified";
        readonly schema: z.ZodBoolean;
    };
    readonly safetyGuidancePrompt: {
        readonly key: "ai.prompt.safety-guidance";
        readonly schema: z.ZodString;
    };
    readonly safetyClassificationEnabled: {
        readonly key: "superblocks.ai.safety-classification.enabled";
        readonly schema: z.ZodBoolean;
    };
    readonly secretRedactionEnabled: {
        readonly key: "superblocks.ai.secret-redaction.enabled";
        readonly schema: z.ZodBoolean;
    };
    readonly fallbackStrategy: {
        readonly key: "ai.fallback.strategy";
        readonly schema: z.ZodEnum<["model-then-provider", "provider-then-model", "model-then-provider-no-retry", "provider-then-model-no-retry", "only-model", "only-provider", "disabled"]>;
    };
    readonly parameterizedApisEnabled: {
        readonly key: "clark.parameterized-apis.v2.enabled";
        readonly schema: z.ZodBoolean;
    };
    readonly webToolsEnabled: {
        readonly key: "superblocks.ai.web-tools.enabled";
        readonly schema: z.ZodBoolean;
    };
    readonly enableClarkAiReadAccessPermission: {
        readonly key: "ui.clark-ai.read-access-permission";
        readonly schema: z.ZodBoolean;
    };
    readonly apiRunLogsEnabled: {
        readonly key: "ai.get-logs.api-runs.enabled";
        readonly schema: z.ZodBoolean;
    };
    readonly useSystemSkills: {
        readonly key: "clark.use_system_skills";
        readonly schema: z.ZodBoolean;
    };
    readonly sessionRecordingEnabled: {
        readonly key: "clark.session-recording.enabled";
        readonly schema: z.ZodBoolean;
    };
    readonly sessionManagementEnabled: {
        readonly key: "clark.session-management.enabled";
        readonly schema: z.ZodBoolean;
    };
    /** Derived from application templateName in CLI (not LD). See isSdkApiTemplate(). */
    readonly sdkApiEnabled: {
        readonly key: "clark.sdk-api.enabled";
        readonly schema: z.ZodBoolean;
    };
};
/**
   Type-safe feature flags for AI service.

   Automatically parses and validates flag values using Zod schemas.
 * All flag definitions are in FLAG_DEFINITIONS above.
 */
export type AiServiceFeatureFlags = FlagGetters<typeof FLAG_DEFINITIONS>;
export declare const AiServiceFeatureFlags: {
    /**
     * Create a new feature flags instance with the given flag values.
     */
    create(flags?: Record<string, unknown>): AiServiceFeatureFlags;
};
export {};
//# sourceMappingURL=features.d.ts.map