import { APIResource } from "../../../../core/resource.js";
import { APIPromise } from "../../../../core/api-promise.js";
import { RequestOptions } from "../../../../internal/request-options.js";
export declare class BaseLatest extends APIResource {
    static readonly _key: readonly ['magicTransit', 'connectors', 'events', 'latest'];
    /**
     * Gets latest Magic WAN Connector Telemetry Events
     *
     * @example
     * ```ts
     * const latests =
     *   await client.magicTransit.connectors.events.latest.list(
     *     'connector_id',
     *     { account_id: '023e105f4ecef8ad9ca31a8372d0c353' },
     *   );
     * ```
     */
    list(connectorID: string, params: LatestListParams, options?: RequestOptions): APIPromise<LatestListResponse>;
}
export declare class Latest extends BaseLatest {
}
export interface LatestListResponse {
    count: number;
    items: Array<LatestListResponse.Item>;
}
export declare namespace LatestListResponse {
    /**
     * Recorded Event
     */
    interface Item {
        /**
         * Event kind plus event-specific payload fields.
         *
         * Event kinds:
         *
         * - `Init`: Initialized process
         * - `Leave`: Stopped process
         * - `StartAttestation`: Started attestation
         * - `FinishAttestationSuccess`: Finished attestation
         * - `FinishAttestationFailure`: Failed attestation
         * - `StartRotateCryptKey`: Started crypt key rotation
         * - `FinishRotateCryptKeySuccess`: Finished crypt key rotation
         * - `FinishRotateCryptKeyFailure`: Failed crypt key rotation
         * - `StartRotatePki`: Started PKI rotation
         * - `FinishRotatePkiSuccess`: Finished PKI rotation
         * - `FinishRotatePkiFailure`: Failed PKI rotation
         * - `StartUpgrade`: Started upgrade
         * - `FinishUpgradeSuccess`: Finished upgrade
         * - `FinishUpgradeFailure`: Failed upgrade
         * - `BlessSlotSuccess`: Blessed boot entry slot
         * - `BlessSlotPending`: Boot entry slot is not yet blessed
         * - `BlessSlotFailure`: Failed to bless boot entry slot
         * - `Reconcile`: Reconciled
         * - `ConfigureCloudflaredTunnel`: Configured Cloudflared tunnel
         * - `RekeyInstallBoth`: Installed initial inbound and outbound keys
         * - `RekeyStart`: Installed new inbound key, kept old outbound
         * - `RekeyRestart`: Restarted in-progress rekey with newer key material
         * - `RekeyAdvance`: Confirmed traffic on new inbound key, swapped outbound to new
         * - `RekeyComplete`: Deleted old keys
         * - `RekeyReset`: Deleted all keys after receiving an unexpected key
         * - `HaTransition`: Completed HA state transition
         * - `HaError`: Received unexpected HA error
         * - `HaInit`: Initialized HA subsystem
         * - `HaLeave`: Stopped HA subsystem
         */
        e: Item.E;
        /**
         * Sequence number, used to order events with the same timestamp
         */
        n: number;
        /**
         * Time the Event was recorded (seconds since the Unix epoch)
         */
        t: number;
        /**
         * Version
         */
        v?: string;
    }
    namespace Item {
        /**
         * Event kind plus event-specific payload fields.
         *
         * Event kinds:
         *
         * - `Init`: Initialized process
         * - `Leave`: Stopped process
         * - `StartAttestation`: Started attestation
         * - `FinishAttestationSuccess`: Finished attestation
         * - `FinishAttestationFailure`: Failed attestation
         * - `StartRotateCryptKey`: Started crypt key rotation
         * - `FinishRotateCryptKeySuccess`: Finished crypt key rotation
         * - `FinishRotateCryptKeyFailure`: Failed crypt key rotation
         * - `StartRotatePki`: Started PKI rotation
         * - `FinishRotatePkiSuccess`: Finished PKI rotation
         * - `FinishRotatePkiFailure`: Failed PKI rotation
         * - `StartUpgrade`: Started upgrade
         * - `FinishUpgradeSuccess`: Finished upgrade
         * - `FinishUpgradeFailure`: Failed upgrade
         * - `BlessSlotSuccess`: Blessed boot entry slot
         * - `BlessSlotPending`: Boot entry slot is not yet blessed
         * - `BlessSlotFailure`: Failed to bless boot entry slot
         * - `Reconcile`: Reconciled
         * - `ConfigureCloudflaredTunnel`: Configured Cloudflared tunnel
         * - `RekeyInstallBoth`: Installed initial inbound and outbound keys
         * - `RekeyStart`: Installed new inbound key, kept old outbound
         * - `RekeyRestart`: Restarted in-progress rekey with newer key material
         * - `RekeyAdvance`: Confirmed traffic on new inbound key, swapped outbound to new
         * - `RekeyComplete`: Deleted old keys
         * - `RekeyReset`: Deleted all keys after receiving an unexpected key
         * - `HaTransition`: Completed HA state transition
         * - `HaError`: Received unexpected HA error
         * - `HaInit`: Initialized HA subsystem
         * - `HaLeave`: Stopped HA subsystem
         */
        interface E {
            /**
             * Event kind
             */
            k: 'Init' | 'Leave' | 'StartAttestation' | 'FinishAttestationSuccess' | 'FinishAttestationFailure' | 'StartRotateCryptKey' | 'FinishRotateCryptKeySuccess' | 'FinishRotateCryptKeyFailure' | 'StartRotatePki' | 'FinishRotatePkiSuccess' | 'FinishRotatePkiFailure' | 'StartUpgrade' | 'FinishUpgradeSuccess' | 'FinishUpgradeFailure' | 'BlessSlotSuccess' | 'BlessSlotPending' | 'BlessSlotFailure' | 'Reconcile' | 'ConfigureCloudflaredTunnel' | 'RekeyInstallBoth' | 'RekeyStart' | 'RekeyRestart' | 'RekeyAdvance' | 'RekeyComplete' | 'RekeyReset' | 'HaTransition' | 'HaError' | 'HaInit' | 'HaLeave';
            [k: string]: unknown;
        }
    }
}
export interface LatestListParams {
    /**
     * Account identifier
     */
    account_id: string;
}
export declare namespace Latest {
    export { type LatestListResponse as LatestListResponse, type LatestListParams as LatestListParams };
}
//# sourceMappingURL=latest.d.ts.map