import type { NormalizedConversation } from "../ingestion/types.js"; export interface FilterSpec { since?: string; until?: string; agent?: string; policy?: string[]; conversation?: string[]; } /** * Parse a duration string like "2h", "24h", "7d" into an ISO date string. * If already an ISO date string, returns as-is. */ export declare function parseDuration(input: string): string; /** * Apply post-ingestion filters to conversations. * Used for filters that can't be pushed to the API (agent name, conversation IDs) * and for non-LangSmith sources (JSON, OTEL) where all filtering is post-ingestion. */ export declare function applyFilters(conversations: NormalizedConversation[], filters: FilterSpec): NormalizedConversation[]; /** * Logger that can be silenced for JSON output mode. */ export declare function createLogger(quiet: boolean): { log: (message?: any, ...optionalParams: any[]) => void; warn: (message?: any, ...optionalParams: any[]) => void; error: (message?: any, ...optionalParams: any[]) => void; progress: ((..._args: unknown[]) => void) | ((msg: string) => boolean); }; //# sourceMappingURL=filters.d.ts.map