import { normalizePreviewPlaform } from "../models/preview-platform";
export function makeSearchResultsPageIntent(opts) {
    const { platform, ...rest } = opts;
    return {
        ...rest,
        platform: normalizePreviewPlaform(platform),
        $kind: "SearchResultsPageIntent",
    };
}
export function makeSearchResultsPageIntentFromURLParams(opts) {
    return makeSearchResultsPageIntent({
        ...opts,
        origin: "userText",
    });
}
export function isSearchResultsPageIntent(intent) {
    return intent.$kind === "SearchResultsPageIntent";
}
//# sourceMappingURL=search-results-page-intent.js.map