| 1 | export interface FunnelReport { |
| 2 | report: string; |
| 3 | source: string; |
| 4 | synthetic: boolean; |
| 5 | freshness: { newest_observed_received_at: string | null; age_hours: number | null }; |
| 6 | website: { totals: Record<string, number>; days: Array<{ day: string; counters: Record<string, number> }> }; |
| 7 | native: { |
| 8 | observed_started_ids: number; |
| 9 | observed_initialized_ids: number; |
| 10 | observed_completed_ids: number; |
| 11 | excluded_ci_ids: number; |
| 12 | incomplete_followup_ids: number; |
| 13 | seven_day_initialization_cohort: { denominator: number; numerator: number; fraction: number | null; unavailable_reason: string | null; sampled: boolean }; |
| 14 | }; |
| 15 | caveats: string[]; |
| 16 | } |
| 17 | export const CAVEATS: readonly string[]; |
| 18 | export function funnelSql(from: string, to: string): { website: string; native: string }; |
| 19 | export function buildFunnelReport(input: unknown, options?: { now?: Date }): FunnelReport; |
| 20 | export function parseArgs(argv: string[]): { input: string | null; from: string | null; to: string | null; sql: boolean }; |
| 21 | export function main(argv?: string[], env?: NodeJS.ProcessEnv): Promise<unknown>; |
| 22 |