//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/coredata/nsstagedmigrationmanager?language=objc)
    #[unsafe(super(NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct NSStagedMigrationManager;
);

extern_conformance!(
    unsafe impl NSObjectProtocol for NSStagedMigrationManager {}
);

impl NSStagedMigrationManager {
    extern_methods!(
        #[cfg(feature = "NSMigrationStage")]
        #[unsafe(method(stages))]
        #[unsafe(method_family = none)]
        pub unsafe fn stages(&self) -> Retained<NSArray<NSMigrationStage>>;

        #[cfg(feature = "NSPersistentContainer")]
        #[unsafe(method(container))]
        #[unsafe(method_family = none)]
        pub unsafe fn container(&self) -> Option<Retained<NSPersistentContainer>>;

        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[cfg(feature = "NSMigrationStage")]
        #[unsafe(method(initWithMigrationStages:))]
        #[unsafe(method_family = init)]
        pub unsafe fn initWithMigrationStages(
            this: Allocated<Self>,
            stages: &NSArray<NSMigrationStage>,
        ) -> Retained<Self>;
    );
}

/// Methods declared on superclass `NSObject`.
impl NSStagedMigrationManager {
    extern_methods!(
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}
