import * as Schema from "effect/Schema";
import { BadRequest, Forbidden, NotFound } from "../../errors.ts";
export declare const WebAnalyticsWeeklyDigestInput: Schema.Struct<{
    readonly project_id: Schema.String;
    readonly compare: Schema.optional<Schema.Boolean>;
    readonly days: Schema.optional<Schema.Number>;
}>;
export type WebAnalyticsWeeklyDigestInput = typeof WebAnalyticsWeeklyDigestInput.Type;
export declare const WebAnalyticsWeeklyDigestOutput: Schema.Struct<{
    readonly visitors: Schema.optional<Schema.Struct<{
        readonly current: Schema.optional<Schema.Number>;
        readonly previous: Schema.optional<Schema.NullOr<Schema.Number>>;
        readonly change: Schema.optional<Schema.NullOr<Schema.Struct<{
            readonly percent: Schema.optional<Schema.Number>;
            readonly direction: Schema.optional<Schema.Literals<readonly ["Up", "Down"]>>;
            readonly color: Schema.optional<Schema.String>;
            readonly text: Schema.optional<Schema.String>;
            readonly long_text: Schema.optional<Schema.String>;
        }>>>;
    }>>;
    readonly pageviews: Schema.optional<Schema.Struct<{
        readonly current: Schema.optional<Schema.Number>;
        readonly previous: Schema.optional<Schema.NullOr<Schema.Number>>;
        readonly change: Schema.optional<Schema.NullOr<Schema.Struct<{
            readonly percent: Schema.optional<Schema.Number>;
            readonly direction: Schema.optional<Schema.Literals<readonly ["Up", "Down"]>>;
            readonly color: Schema.optional<Schema.String>;
            readonly text: Schema.optional<Schema.String>;
            readonly long_text: Schema.optional<Schema.String>;
        }>>>;
    }>>;
    readonly sessions: Schema.optional<Schema.Struct<{
        readonly current: Schema.optional<Schema.Number>;
        readonly previous: Schema.optional<Schema.NullOr<Schema.Number>>;
        readonly change: Schema.optional<Schema.NullOr<Schema.Struct<{
            readonly percent: Schema.optional<Schema.Number>;
            readonly direction: Schema.optional<Schema.Literals<readonly ["Up", "Down"]>>;
            readonly color: Schema.optional<Schema.String>;
            readonly text: Schema.optional<Schema.String>;
            readonly long_text: Schema.optional<Schema.String>;
        }>>>;
    }>>;
    readonly bounce_rate: Schema.optional<Schema.Struct<{
        readonly current: Schema.optional<Schema.Number>;
        readonly previous: Schema.optional<Schema.NullOr<Schema.Number>>;
        readonly change: Schema.optional<Schema.NullOr<Schema.Struct<{
            readonly percent: Schema.optional<Schema.Number>;
            readonly direction: Schema.optional<Schema.Literals<readonly ["Up", "Down"]>>;
            readonly color: Schema.optional<Schema.String>;
            readonly text: Schema.optional<Schema.String>;
            readonly long_text: Schema.optional<Schema.String>;
        }>>>;
    }>>;
    readonly avg_session_duration: Schema.optional<Schema.Struct<{
        readonly current: Schema.optional<Schema.String>;
        readonly previous: Schema.optional<Schema.NullOr<Schema.String>>;
        readonly change: Schema.optional<Schema.NullOr<Schema.Struct<{
            readonly percent: Schema.optional<Schema.Number>;
            readonly direction: Schema.optional<Schema.Literals<readonly ["Up", "Down"]>>;
            readonly color: Schema.optional<Schema.String>;
            readonly text: Schema.optional<Schema.String>;
            readonly long_text: Schema.optional<Schema.String>;
        }>>>;
    }>>;
    readonly top_pages: Schema.optional<Schema.$Array<Schema.Struct<{
        readonly host: Schema.optional<Schema.String>;
        readonly path: Schema.optional<Schema.String>;
        readonly visitors: Schema.optional<Schema.Number>;
        readonly change: Schema.optional<Schema.NullOr<Schema.Struct<{
            readonly percent: Schema.optional<Schema.Number>;
            readonly direction: Schema.optional<Schema.Literals<readonly ["Up", "Down"]>>;
            readonly color: Schema.optional<Schema.String>;
            readonly text: Schema.optional<Schema.String>;
            readonly long_text: Schema.optional<Schema.String>;
        }>>>;
    }>>>;
    readonly top_sources: Schema.optional<Schema.$Array<Schema.Struct<{
        readonly name: Schema.optional<Schema.String>;
        readonly visitors: Schema.optional<Schema.Number>;
        readonly change: Schema.optional<Schema.NullOr<Schema.Struct<{
            readonly percent: Schema.optional<Schema.Number>;
            readonly direction: Schema.optional<Schema.Literals<readonly ["Up", "Down"]>>;
            readonly color: Schema.optional<Schema.String>;
            readonly text: Schema.optional<Schema.String>;
            readonly long_text: Schema.optional<Schema.String>;
        }>>>;
    }>>>;
    readonly goals: Schema.optional<Schema.$Array<Schema.Struct<{
        readonly name: Schema.optional<Schema.String>;
        readonly conversions: Schema.optional<Schema.Number>;
        readonly change: Schema.optional<Schema.NullOr<Schema.Struct<{
            readonly percent: Schema.optional<Schema.Number>;
            readonly direction: Schema.optional<Schema.Literals<readonly ["Up", "Down"]>>;
            readonly color: Schema.optional<Schema.String>;
            readonly text: Schema.optional<Schema.String>;
            readonly long_text: Schema.optional<Schema.String>;
        }>>>;
    }>>>;
    readonly dashboard_url: Schema.optional<Schema.String>;
}>;
export type WebAnalyticsWeeklyDigestOutput = typeof WebAnalyticsWeeklyDigestOutput.Type;
/**
 * Summarize web analytics
 *
 * Summarizes a project's web analytics over a lookback window (default 7 days): unique visitors, pageviews, sessions, bounce rate, and average session duration with period-over-period comparisons, plus the top 5 pages, top 5 traffic sources, and goal conversions.
 *
 * @param compare - When true (default), include period-over-period change for each metric comparing against the prior equal-length period. Set to false to skip the comparison query (faster).
 * @param days - Lookback window in days (1–90). Defaults to 7.
 * @param project_id - Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 */
export declare const webAnalyticsWeeklyDigest: import("@distilled.cloud/core/client").OperationMethod<{
    readonly project_id: string;
    readonly compare?: boolean | undefined;
    readonly days?: number | undefined;
}, {
    readonly visitors?: {
        readonly current?: number | undefined;
        readonly previous?: number | null | undefined;
        readonly change?: {
            readonly percent?: number | undefined;
            readonly direction?: "Down" | "Up" | undefined;
            readonly color?: string | undefined;
            readonly text?: string | undefined;
            readonly long_text?: string | undefined;
        } | null | undefined;
    } | undefined;
    readonly pageviews?: {
        readonly current?: number | undefined;
        readonly previous?: number | null | undefined;
        readonly change?: {
            readonly percent?: number | undefined;
            readonly direction?: "Down" | "Up" | undefined;
            readonly color?: string | undefined;
            readonly text?: string | undefined;
            readonly long_text?: string | undefined;
        } | null | undefined;
    } | undefined;
    readonly sessions?: {
        readonly current?: number | undefined;
        readonly previous?: number | null | undefined;
        readonly change?: {
            readonly percent?: number | undefined;
            readonly direction?: "Down" | "Up" | undefined;
            readonly color?: string | undefined;
            readonly text?: string | undefined;
            readonly long_text?: string | undefined;
        } | null | undefined;
    } | undefined;
    readonly bounce_rate?: {
        readonly current?: number | undefined;
        readonly previous?: number | null | undefined;
        readonly change?: {
            readonly percent?: number | undefined;
            readonly direction?: "Down" | "Up" | undefined;
            readonly color?: string | undefined;
            readonly text?: string | undefined;
            readonly long_text?: string | undefined;
        } | null | undefined;
    } | undefined;
    readonly avg_session_duration?: {
        readonly current?: string | undefined;
        readonly previous?: string | null | undefined;
        readonly change?: {
            readonly percent?: number | undefined;
            readonly direction?: "Down" | "Up" | undefined;
            readonly color?: string | undefined;
            readonly text?: string | undefined;
            readonly long_text?: string | undefined;
        } | null | undefined;
    } | undefined;
    readonly top_pages?: readonly {
        readonly host?: string | undefined;
        readonly path?: string | undefined;
        readonly visitors?: number | undefined;
        readonly change?: {
            readonly percent?: number | undefined;
            readonly direction?: "Down" | "Up" | undefined;
            readonly color?: string | undefined;
            readonly text?: string | undefined;
            readonly long_text?: string | undefined;
        } | null | undefined;
    }[] | undefined;
    readonly top_sources?: readonly {
        readonly name?: string | undefined;
        readonly visitors?: number | undefined;
        readonly change?: {
            readonly percent?: number | undefined;
            readonly direction?: "Down" | "Up" | undefined;
            readonly color?: string | undefined;
            readonly text?: string | undefined;
            readonly long_text?: string | undefined;
        } | null | undefined;
    }[] | undefined;
    readonly goals?: readonly {
        readonly name?: string | undefined;
        readonly conversions?: number | undefined;
        readonly change?: {
            readonly percent?: number | undefined;
            readonly direction?: "Down" | "Up" | undefined;
            readonly color?: string | undefined;
            readonly text?: string | undefined;
            readonly long_text?: string | undefined;
        } | null | undefined;
    }[] | undefined;
    readonly dashboard_url?: string | undefined;
}, BadRequest | Forbidden | NotFound, import("~/credentials.ts").Credentials>;
//# sourceMappingURL=webAnalyticsWeeklyDigest.d.ts.map