use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(INIntentResolutionResult, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "INIntentResolutionResult")]
pub struct INSpeakableStringResolutionResult;
);
#[cfg(feature = "INIntentResolutionResult")]
extern_conformance!(
unsafe impl NSObjectProtocol for INSpeakableStringResolutionResult {}
);
#[cfg(feature = "INIntentResolutionResult")]
impl INSpeakableStringResolutionResult {
extern_methods!(
#[cfg(feature = "INSpeakableString")]
#[unsafe(method(successWithResolvedString:))]
#[unsafe(method_family = none)]
pub unsafe fn successWithResolvedString(
resolved_string: &INSpeakableString,
) -> Retained<Self>;
#[cfg(feature = "INSpeakableString")]
#[unsafe(method(disambiguationWithStringsToDisambiguate:))]
#[unsafe(method_family = none)]
pub unsafe fn disambiguationWithStringsToDisambiguate(
strings_to_disambiguate: &NSArray<INSpeakableString>,
) -> Retained<Self>;
#[cfg(feature = "INSpeakableString")]
#[unsafe(method(confirmationRequiredWithStringToConfirm:))]
#[unsafe(method_family = none)]
pub unsafe fn confirmationRequiredWithStringToConfirm(
string_to_confirm: Option<&INSpeakableString>,
) -> Retained<Self>;
);
}
#[cfg(feature = "INIntentResolutionResult")]
impl INSpeakableStringResolutionResult {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(needsValue))]
#[unsafe(method_family = none)]
pub unsafe fn needsValue() -> Retained<Self>;
#[unsafe(method(notRequired))]
#[unsafe(method_family = none)]
pub unsafe fn notRequired() -> Retained<Self>;
#[unsafe(method(unsupported))]
#[unsafe(method_family = none)]
pub unsafe fn unsupported() -> Retained<Self>;
);
}
#[cfg(feature = "INIntentResolutionResult")]
impl INSpeakableStringResolutionResult {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}