import { NonSearchableEventMetadataTimeFieldIdInput, AdvancedSearchConfig } from '../event-config/event-configuration'; import { ActionType } from './ActionType'; import { EventFieldIdInput } from './AdvancedSearchConfig'; import { WorkqueueColumnKeys, WorkqueueColumnValue } from './WorkqueueColumnConfig'; /** * Creates a function that acts like a callable + static method container. * * @example * event('status') // → returns search config * event.hasAction('CLICKED') // → returns conditional */ declare function eventFn(fieldId: EventFieldIdInput): AdvancedSearchConfig; declare function eventFn(fieldId: NonSearchableEventMetadataTimeFieldIdInput): { $$event: NonSearchableEventMetadataTimeFieldIdInput; }; declare const event: typeof eventFn & { /** * Checks if the event contains a specific action type. * Can be used directly as a conditional or chained with additional methods. * @param action - The action type to check for. */ hasAction: (action: ActionType) => { /** * Creates a conditional that checks if the event contains a specific action type * with a minimum count of occurrences. * * @param minCount - The minimum number of actions required. */ minCount: (minCount: number) => import("../conditionals/conditionals").JSONSchema; /** * Builds a conditional that sets a maximum count for the number of actions. * This is useful for limiting the number of actions of a specific type in a single event. */ maxCount: (maxCount: number) => import("../conditionals/conditionals").JSONSchema; /** * Adds additional field constraints to the action matching. * * @param fields - Object containing additional fields to match on the action. */ withFields: (fields: Record) => { /** * Creates a conditional that checks if the event contains a specific action type * with a minimum count of occurrences. * * @param minCount - The minimum number of actions required. */ minCount: (minCount: number) => import("../conditionals/conditionals").JSONSchema; /** * Builds a conditional that sets a maximum count for the number of actions. * This is useful for limiting the number of actions of a specific type in a single event. */ maxCount: (maxCount: number) => import("../conditionals/conditionals").JSONSchema; }; /** * Adds template ID constraint to the action matching. * This is a convenience method that adds content.templateId to the fields. * * @param id - The template ID to match against. */ withTemplate: (id: string) => { /** * Creates a conditional that checks if the event contains a specific action type * with a minimum count of occurrences. * * @param minCount - The minimum number of actions required. */ minCount: (minCount: number) => import("../conditionals/conditionals").JSONSchema; /** * Builds a conditional that sets a maximum count for the number of actions. * This is useful for limiting the number of actions of a specific type in a single event. */ maxCount: (maxCount: number) => import("../conditionals/conditionals").JSONSchema; }; $id: string; __nominal__type: "JSONSchema"; }; field(field: WorkqueueColumnKeys): WorkqueueColumnValue; }; export { event }; //# sourceMappingURL=event.d.ts.map