/** * Product analytics — data-routing destinations + user segmentation cohorts. * * GET /analytics/projects/:p/destinations * POST /analytics/projects/:p/destinations * DELETE /analytics/projects/:p/destinations/:id * GET /analytics/projects/:p/cohorts * POST /analytics/projects/:p/cohorts * * `destinations` route events to third-party systems (BigQuery, Snowflake, * Segment, Amplitude, webhook, …); `cohorts` define dynamic user segments * either via a structured predicate or a SQL fragment. */ import type { Client } from './client.js'; export interface Destination { readonly id: string; readonly type: string; readonly name: string | null; readonly enabled: boolean; readonly createdAt: string; } export declare const listDestinations: (client: Client, projectId: string) => Promise<{ destinations: readonly Destination[]; }>; export interface AddDestinationInput { readonly type: string; readonly credentials: Readonly>; readonly enabled?: boolean; readonly name?: string; } export declare const addDestination: (client: Client, projectId: string, input: AddDestinationInput) => Promise; export declare const removeDestination: (client: Client, projectId: string, destinationId: string) => Promise; export interface Cohort { readonly id: string; readonly name: string; readonly cohortType: string; readonly memberCount: number | null; readonly createdAt: string; } export declare const listCohorts: (client: Client, projectId: string) => Promise<{ cohorts: readonly Cohort[]; }>; export interface CreateCohortInput { readonly name: string; readonly definition: unknown; readonly cohortType?: 'dynamic' | 'static'; } export declare const createCohort: (client: Client, projectId: string, input: CreateCohortInput) => Promise; //# sourceMappingURL=analytics.d.ts.map