import type { AiSearchSchemaContext, QueryIntent } from './types'; export interface ValidateIntentOptions { /** * Host hook to explain an unknown filter field path more precisely than the * generic message — e.g. Data Builder resolves navigation chains to tell the * model the valid leaf fields on the target entity so a repair round can * succeed in one shot. Return undefined to fall back to the generic message. */ explainUnknownField?: (fieldPath: string) => string | undefined; } /** * Validates an intent against the schema context, enforcing the same gates * the manual UIs apply (searchable / orderable / aggregatable / groupBy * required for aggregates). Returns [] when the intent is safe to compile. * Error strings are written for the model — precise enough that a single * repair round can fix the intent. */ export declare const validateIntent: (intent: QueryIntent, ctx: AiSearchSchemaContext, options?: ValidateIntentOptions) => string[]; //# sourceMappingURL=validate.d.ts.map