/**
 * Slack Events API envelope shapes used by the ingestion connector.
 * Spec: https://api.slack.com/events-api
 */
export function isSlackEventEnvelope(x) {
    if (!x || typeof x !== 'object')
        return false;
    const o = x;
    return (o.type === 'event_callback' &&
        typeof o.team_id === 'string' &&
        typeof o.event_id === 'string' &&
        typeof o.event_time === 'number' &&
        !!o.event &&
        typeof o.event === 'object' &&
        typeof o.event.type === 'string');
}
export function isSlackMessageEvent(x) {
    if (!x || typeof x !== 'object')
        return false;
    const o = x;
    return o.type === 'message' && typeof o.channel === 'string' && typeof o.ts === 'string';
}
//# sourceMappingURL=types.js.map