import { PagesList, ParsedPagesList } from '../Common';
export type EventsPage = {
    id: string;
    number: string;
    url: string;
};
export type FilterField = {
    event?: string;
    list?: string;
    attachment?: string;
    from?: string;
    'message-id'?: string;
    subject?: string;
    to?: string;
    size?: string;
    recipient?: string;
    recipients?: string;
    tags?: string;
    severity?: string;
};
export type EventsQuery = FilterField & {
    page?: string;
    begin?: string;
    end?: string;
    ascending?: 'yes' | 'no';
    limit?: number;
};
export type EventsResponse = {
    body: {
        items: [];
        paging: PagesList;
    };
    status: number;
};
export type DomainEvent = {
    severity: string;
    tags: string[];
    storage: {
        url: string;
        key: string;
    };
    'delivery-status': {
        tls: boolean;
        'mx-host': string;
        code: number;
        description: string;
        'session-seconds': number;
        utf8: boolean;
        'attempt-no': number;
        message: string;
        'certificate-verified': boolean;
    };
    'recipient-domain': string;
    id: string;
    campaigns: [];
    reason: string;
    'user-variables': {
        [key: string]: unknown;
    };
    flags: {
        'is-routed': boolean;
        'is-authenticated': boolean;
        'is-system-test': boolean;
        'is-test-mode': boolean;
    };
    'log-level': string;
    template?: unknown;
    timestamp: number;
    envelope: {
        transport: string;
        sender: string;
        'sending-ip': string;
        targets: string;
    };
    message: {
        headers: {
            to: string;
            'message-id': string;
            from: string;
            subject: string;
        };
        attachments: [];
        size: 308;
    };
    recipient: string;
    event: string;
};
export type EventsList = {
    items: DomainEvent[];
    pages: ParsedPagesList;
    status: number;
};
