import * as Schema from "effect/Schema";
import { BadRequest, Forbidden, NotFound } from "../../errors.ts";
export declare const EventsListInput: Schema.Struct<{
    readonly project_id: Schema.String;
    readonly after: Schema.optional<Schema.String>;
    readonly before: Schema.optional<Schema.String>;
    readonly distinct_id: Schema.optional<Schema.Number>;
    readonly event: Schema.optional<Schema.String>;
    readonly format: Schema.optional<Schema.Literals<readonly ["csv", "json"]>>;
    readonly limit: Schema.optional<Schema.Number>;
    readonly offset: Schema.optional<Schema.Number>;
    readonly person_id: Schema.optional<Schema.Number>;
    readonly properties: Schema.optional<Schema.String>;
    readonly select: Schema.optional<Schema.String>;
    readonly where: Schema.optional<Schema.String>;
}>;
export type EventsListInput = typeof EventsListInput.Type;
export declare const EventsListOutput: Schema.Struct<{
    readonly next: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly results: Schema.optional<Schema.$Array<Schema.Struct<{
        readonly id: Schema.optional<Schema.String>;
        readonly distinct_id: Schema.optional<Schema.String>;
        readonly properties: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
        readonly event: Schema.optional<Schema.String>;
        readonly timestamp: Schema.optional<Schema.String>;
        readonly person: Schema.optional<Schema.NullOr<Schema.$Record<Schema.String, Schema.Unknown>>>;
        readonly elements: Schema.optional<Schema.$Array<Schema.Struct<{
            readonly event: Schema.optional<Schema.String>;
            readonly text: Schema.optional<Schema.NullOr<Schema.String>>;
            readonly tag_name: Schema.optional<Schema.NullOr<Schema.String>>;
            readonly attr_class: Schema.optional<Schema.NullOr<Schema.$Array<Schema.String>>>;
            readonly href: Schema.optional<Schema.NullOr<Schema.String>>;
            readonly attr_id: Schema.optional<Schema.NullOr<Schema.String>>;
            readonly nth_child: Schema.optional<Schema.NullOr<Schema.Number>>;
            readonly nth_of_type: Schema.optional<Schema.NullOr<Schema.Number>>;
            readonly attributes: Schema.optional<Schema.Unknown>;
            readonly order: Schema.optional<Schema.NullOr<Schema.Number>>;
        }>>>;
        readonly elements_chain: Schema.optional<Schema.String>;
    }>>>;
}>;
export type EventsListOutput = typeof EventsListOutput.Type;
/**
 * This endpoint allows you to list and filter events.
 * It is effectively deprecated and is kept only for backwards compatibility.
 * If you ever ask about it you will be advised to not use it...
 * If you want to ad-hoc list or aggregate events, use the Query endpoint instead.
 * If you want to export all events or many pages of events you should use our CDP/Batch Exports products instead.
 *
 * @param after - Only return events with a timestamp after this time. Default: now() - 24 hours.
 * @param before - Only return events with a timestamp before this time. Default: now() + 5 seconds.
 * @param distinct_id - Filter list by distinct id.
 * @param event - Filter list by event. For example `user sign up` or `$pageview`.
 * @param limit - The maximum number of results to return
 * @param offset - Allows to skip first offset rows. Will fail for value larger than 100000. Read about proper way of paginating: https://posthog.com/docs/api/queries#5-use-timestamp-based-pagination-instead-of-offset
 * @param person_id - Filter list by person id.
 * @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/.
 * @param properties - Filter events by event property, person property, cohort, groups and more.
 * @param select - (Experimental) JSON-serialized array of HogQL expressions to return
 * @param where - (Experimental) JSON-serialized array of HogQL expressions that must pass
 */
export declare const eventsList: import("@distilled.cloud/core/client").OperationMethod<{
    readonly after?: string | undefined;
    readonly before?: string | undefined;
    readonly distinct_id?: number | undefined;
    readonly event?: string | undefined;
    readonly format?: "csv" | "json" | undefined;
    readonly limit?: number | undefined;
    readonly offset?: number | undefined;
    readonly person_id?: number | undefined;
    readonly project_id: string;
    readonly properties?: string | undefined;
    readonly select?: string | undefined;
    readonly where?: string | undefined;
}, {
    readonly next?: string | null | undefined;
    readonly results?: readonly {
        readonly distinct_id?: string | undefined;
        readonly elements?: readonly {
            readonly attr_class?: readonly string[] | null | undefined;
            readonly attr_id?: string | null | undefined;
            readonly attributes?: unknown;
            readonly event?: string | undefined;
            readonly href?: string | null | undefined;
            readonly nth_child?: number | null | undefined;
            readonly nth_of_type?: number | null | undefined;
            readonly order?: number | null | undefined;
            readonly tag_name?: string | null | undefined;
            readonly text?: string | null | undefined;
        }[] | undefined;
        readonly elements_chain?: string | undefined;
        readonly event?: string | undefined;
        readonly id?: string | undefined;
        readonly person?: {
            readonly [x: string]: unknown;
        } | null | undefined;
        readonly properties?: {
            readonly [x: string]: unknown;
        } | undefined;
        readonly timestamp?: string | undefined;
    }[] | undefined;
}, BadRequest | Forbidden | NotFound, import("~/credentials.ts").Credentials>;
//# sourceMappingURL=eventsList.d.ts.map