import { CityName } from "../utils/types"; import type { TicketStatsDateRange } from "./tickets.types"; /** Legacy draft detection for tickets created before isDraft existed. */ export declare const isDraftSubjectIdExpr: { $or: ({ $eq: (string | { $type: string; })[]; $regexMatch?: undefined; } | { $eq: (string | null)[]; $regexMatch?: undefined; } | { $regexMatch: { input: { $ifNull: string[]; }; regex: RegExp; }; $eq?: undefined; })[]; }; /** * Draft when isDraft is true, not draft when isDraft is false, * otherwise fall back to legacy subject-id heuristic for older tickets. */ export declare const isDraftTicketExpr: { $or: ({ $eq: (string | boolean)[]; $and?: undefined; } | { $and: ({ $or: ({ $eq: (string | { $type: string; })[]; $regexMatch?: undefined; } | { $eq: (string | null)[]; $regexMatch?: undefined; } | { $regexMatch: { input: { $ifNull: string[]; }; regex: RegExp; }; $eq?: undefined; })[]; } | { $ne: (string | boolean)[]; })[]; $eq?: undefined; })[]; }; export declare const ticketsWithCallSidMatch: (cityName: CityName, dateRange: TicketStatsDateRange) => { createdAt: { $gte: Date; $lte: Date; }; cityName: string; callSid: { $exists: boolean; $nin: (string | null)[]; }; }; export declare const subjectResolutionStages: (cityName: CityName) => Record[]; export declare const runTicketStatsAggregate: (pipeline: Record[]) => Promise; //# sourceMappingURL=tickets.statistics.aggregation.d.ts.map