/**
 * @private
 * Determines if the Discussions API can be targeted with the given
 * search parameters
 * @param targetEntity
 * @param options
 * @returns boolean
 */
export function shouldUseDiscussionsApi(targetEntity, options) {
    const { requestOptions: { isPortal }, } = options;
    return (targetEntity === "channel" || targetEntity === "post") && !isPortal;
}
//# sourceMappingURL=shouldUseDiscussionsApi.js.map