import { normalizePreviewPlaform } from "../models/preview-platform";
const APP_EVENT_PAGE_INTENT_KIND = "AppEventPageIntent";
export function makeAppEventPageIntent(opts) {
    const { platform, ...rest } = opts;
    return {
        ...rest,
        $kind: APP_EVENT_PAGE_INTENT_KIND,
        platform: normalizePreviewPlaform(platform),
    };
}
export function isAppEventPageIntent(intent) {
    return (intent === null || intent === void 0 ? void 0 : intent.$kind) === APP_EVENT_PAGE_INTENT_KIND;
}
//# sourceMappingURL=app-event-page-intent.js.map