// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.7.1 (swiftlang-5.7.1.134.4 clang-1400.0.29.51)
// swift-module-flags: -target arm64e-apple-ios16.2-macabi -enable-objc-interop -autolink-force-load -enable-library-evolution -module-link-name swiftCoreMIDI -swift-version 5 -enforce-exclusivity=checked -O -library-level api -module-name CoreMIDI
// swift-module-flags-ignorable: -enable-bare-slash-regex -user-module-version 6
@_exported import CoreMIDI
import Foundation
import Swift
import _Concurrency
import _StringProcessing
@available(macOS 11.0, iOS 14.0, *)
public struct UnsafeMutableMIDIEventPacketPointer {
  public init(_ p: Swift.UnsafeMutablePointer<CoreMIDI.MIDIEventPacket>)
  public init?(_ p: Swift.UnsafeMutablePointer<CoreMIDI.MIDIEventPacket>?)
  public var count: Swift.Int {
    get
    nonmutating set(newValue)
  }
  public var timeStamp: Swift.Int {
    get
    nonmutating set(newValue)
  }
}
@available(macOS 11.0, iOS 14.0, *)
extension CoreMIDI.UnsafeMutableMIDIEventPacketPointer : Swift.MutableCollection, Swift.RandomAccessCollection {
  @available(macOS 11.0, iOS 14.0, *)
  public typealias Element = Swift.UInt32
  @available(macOS 11.0, iOS 14.0, *)
  public typealias Index = Swift.Int
  @available(macOS 11.0, iOS 14.0, *)
  public typealias Indices = Swift.Range<Swift.Int>
  @available(macOS 11.0, iOS 14.0, *)
  public var startIndex: Swift.Int {
    get
  }
  @available(macOS 11.0, iOS 14.0, *)
  public var endIndex: Swift.Int {
    get
  }
  @available(macOS 11.0, iOS 14.0, *)
  public subscript(index: CoreMIDI.UnsafeMutableMIDIEventPacketPointer.Index) -> CoreMIDI.UnsafeMutableMIDIEventPacketPointer.Element {
    get
    nonmutating set(newValue)
  }
  public typealias Iterator = CoreMIDI.MIDIEventPacket.WordSequence.Iterator
  public typealias SubSequence = Swift.Slice<CoreMIDI.UnsafeMutableMIDIEventPacketPointer>
}
extension CoreMIDI.MIDIEventPacket {
  @available(macOS 11.0, iOS 14.0, *)
  public struct WordSequence : Swift.Sequence {
    public func makeIterator() -> CoreMIDI.MIDIEventPacket.WordSequence.Iterator
    public var count: Swift.Int {
      get
    }
    public struct Iterator : Swift.IteratorProtocol {
      public init(_ s: CoreMIDI.MIDIEventPacket.WordSequence)
      public mutating func next() -> Swift.UInt32?
      public typealias Element = Swift.UInt32
    }
    public typealias Element = Swift.UInt32
  }
  @available(macOS 11.0, iOS 14.0, *)
  public struct WordCollection : Swift.RandomAccessCollection {
    public typealias Element = Swift.UInt32
    public typealias Index = Swift.Int
    public typealias Indices = Swift.Range<Swift.Int>
    public init(_ p: Swift.UnsafePointer<CoreMIDI.MIDIEventPacket>)
    public init?(_ p: Swift.UnsafePointer<CoreMIDI.MIDIEventPacket>?)
    public var count: Swift.Int {
      get
    }
    public var startIndex: Swift.Int {
      get
    }
    public var endIndex: Swift.Int {
      get
    }
    public subscript(index: CoreMIDI.MIDIEventPacket.WordCollection.Index) -> CoreMIDI.MIDIEventPacket.WordCollection.Element {
      get
    }
    public typealias Iterator = Swift.IndexingIterator<CoreMIDI.MIDIEventPacket.WordCollection>
    public typealias SubSequence = Swift.Slice<CoreMIDI.MIDIEventPacket.WordCollection>
  }
}
@available(macOS 11.0, iOS 14.0, *)
extension CoreMIDI.UnsafeMutableMIDIEventPacketPointer : Swift.Sequence {
  @available(macOS 11.0, iOS 14.0, *)
  public func makeIterator() -> CoreMIDI.MIDIEventPacket.WordSequence.Iterator
}
extension Swift.UnsafePointer where Pointee == CoreMIDI.MIDIEventPacket {
  @available(macOS 11.0, iOS 14.0, *)
  public func sequence() -> CoreMIDI.MIDIEventPacket.WordSequence
  @available(macOS 11.0, iOS 14.0, *)
  public func words() -> CoreMIDI.MIDIEventPacket.WordCollection
}
extension CoreMIDI.MIDIEventPacket {
  @available(macOS 11.0, iOS 14.0, *)
  public class Builder {
    public var capacity: Swift.Int {
      get
    }
    public init(maximumNumberMIDIWords: Swift.Int)
    @objc deinit
    public var count: Swift.Int {
      get
    }
    public var timeStamp: Swift.Int {
      get
      set(newValue)
    }
    public func append(_ midiWords: Swift.UInt32...)
    public func withUnsafePointer<Result>(_ body: (Swift.UnsafePointer<CoreMIDI.MIDIEventPacket>) -> Result) -> Result
    public func withUnsafeMutableMIDIEventPacketPointer<Result>(_ body: (inout CoreMIDI.UnsafeMutableMIDIEventPacketPointer) -> Result) -> Result
  }
}
extension Swift.UnsafePointer where Pointee == CoreMIDI.MIDIEventList {
  @available(macOS 11.0, iOS 14.0, *)
  public func unsafeSequence() -> CoreMIDI.MIDIEventList.UnsafeSequence
}
extension CoreMIDI.MIDIEventList {
  @available(macOS 11.0, iOS 14.0, *)
  public static func sizeInBytes(pktList: Swift.UnsafePointer<CoreMIDI.MIDIEventList>) -> Swift.Int
  @available(macOS 11.0, iOS 14.0, *)
  public struct UnsafeSequence : Swift.Sequence {
    public func makeIterator() -> CoreMIDI.MIDIEventList.UnsafeSequence.Iterator
    public var count: Swift.Int {
      get
    }
    public struct Iterator : Swift.IteratorProtocol {
      public init(_ s: CoreMIDI.MIDIEventList.UnsafeSequence)
      public mutating func next() -> Swift.UnsafePointer<CoreMIDI.MIDIEventPacket>?
      public typealias Element = Swift.UnsafePointer<CoreMIDI.MIDIEventPacket>
    }
    public typealias Element = Swift.UnsafePointer<CoreMIDI.MIDIEventPacket>
  }
}
@available(macOS 11.0, iOS 14.0, *)
public struct UnsafeMutableMIDIEventListPointer : Swift.Sequence {
  public var listSizeInBytes: Swift.Int {
    get
  }
  public var lastPacket: Swift.UnsafeMutablePointer<CoreMIDI.MIDIEventPacket>? {
    get
  }
  public var midiProtocol: CoreMIDI.MIDIProtocolID {
    get
  }
  public init(_ p: Swift.UnsafeMutablePointer<CoreMIDI.MIDIEventList>, wordSize: Swift.Int, inProtocol: CoreMIDI.MIDIProtocolID)
  public init?(_ p: Swift.UnsafeMutablePointer<CoreMIDI.MIDIEventList>?, wordSize: Swift.Int)
  public var count: Swift.Int {
    get
  }
  public mutating func clear()
  @discardableResult
  public mutating func append(timestamp: CoreMIDI.MIDITimeStamp, words: [Swift.UInt32]) -> Swift.UnsafePointer<CoreMIDI.MIDIEventPacket>?
  public func makeIterator() -> CoreMIDI.MIDIEventList.UnsafeSequence.Iterator
  public typealias Element = Swift.UnsafePointer<CoreMIDI.MIDIEventPacket>
  public typealias Iterator = CoreMIDI.MIDIEventList.UnsafeSequence.Iterator
}
extension CoreMIDI.MIDIEventList {
  @available(macOS 11.0, iOS 14.0, *)
  public class Builder {
    public init(inProtocol: CoreMIDI.MIDIProtocolID, wordSize: Swift.Int)
    @objc deinit
    @discardableResult
    public func append(timestamp: CoreMIDI.MIDITimeStamp, words: [Swift.UInt32]) -> Swift.UnsafePointer<CoreMIDI.MIDIEventPacket>?
    public func clear()
    public var count: Swift.Int {
      get
    }
    public func withUnsafePointer<Result>(_ body: (Swift.UnsafePointer<CoreMIDI.MIDIEventList>) -> Result) -> Result
    public func withUnsafeMutableMIDIEventListPointer<Result>(_ body: (inout CoreMIDI.UnsafeMutableMIDIEventListPointer) -> Result) -> Result
  }
}
@available(macOS 10.15, iOS 13.0, *)
public struct UnsafeMutableMIDIPacketPointer {
  public init(_ p: Swift.UnsafeMutablePointer<CoreMIDI.MIDIPacket>)
  public init?(_ p: Swift.UnsafeMutablePointer<CoreMIDI.MIDIPacket>?)
  public var count: Swift.Int {
    get
    nonmutating set(newValue)
  }
  public var timeStamp: Swift.Int {
    get
    nonmutating set(newValue)
  }
}
@available(macOS 10.15, iOS 13.0, *)
extension CoreMIDI.UnsafeMutableMIDIPacketPointer : Swift.MutableCollection, Swift.RandomAccessCollection {
  @available(macOS 10.15, iOS 13.0, *)
  public typealias Element = Swift.UInt8
  @available(macOS 10.15, iOS 13.0, *)
  public typealias Index = Swift.Int
  @available(macOS 10.15, iOS 13.0, *)
  public typealias Indices = Swift.Range<Swift.Int>
  @available(macOS 10.15, iOS 13.0, *)
  public var startIndex: Swift.Int {
    get
  }
  @available(macOS 10.15, iOS 13.0, *)
  public var endIndex: Swift.Int {
    get
  }
  @available(macOS 10.15, iOS 13.0, *)
  public subscript(index: CoreMIDI.UnsafeMutableMIDIPacketPointer.Index) -> CoreMIDI.UnsafeMutableMIDIPacketPointer.Element {
    get
    nonmutating set(newValue)
  }
  public typealias Iterator = CoreMIDI.MIDIPacket.ByteSequence.Iterator
  public typealias SubSequence = Swift.Slice<CoreMIDI.UnsafeMutableMIDIPacketPointer>
}
extension CoreMIDI.MIDIPacket {
  @available(macOS 10.15, iOS 13.0, *)
  public struct ByteSequence : Swift.Sequence {
    public func makeIterator() -> CoreMIDI.MIDIPacket.ByteSequence.Iterator
    public var count: Swift.Int {
      get
    }
    public struct Iterator : Swift.IteratorProtocol {
      public init(_ s: CoreMIDI.MIDIPacket.ByteSequence)
      public mutating func next() -> Swift.UInt8?
      public typealias Element = Swift.UInt8
    }
    public typealias Element = Swift.UInt8
  }
  @available(macOS 10.15, iOS 13.0, *)
  public struct ByteCollection : Swift.RandomAccessCollection {
    public typealias Element = Swift.UInt8
    public typealias Index = Swift.Int
    public typealias Indices = Swift.Range<Swift.Int>
    public init(_ p: Swift.UnsafePointer<CoreMIDI.MIDIPacket>)
    public init?(_ p: Swift.UnsafePointer<CoreMIDI.MIDIPacket>?)
    public var count: Swift.Int {
      get
    }
    public var startIndex: Swift.Int {
      get
    }
    public var endIndex: Swift.Int {
      get
    }
    public subscript(index: CoreMIDI.MIDIPacket.ByteCollection.Index) -> CoreMIDI.MIDIPacket.ByteCollection.Element {
      get
    }
    public typealias Iterator = Swift.IndexingIterator<CoreMIDI.MIDIPacket.ByteCollection>
    public typealias SubSequence = Swift.Slice<CoreMIDI.MIDIPacket.ByteCollection>
  }
}
@available(macOS 10.15, iOS 13.0, *)
extension CoreMIDI.UnsafeMutableMIDIPacketPointer : Swift.Sequence {
  @available(macOS 10.15, iOS 13.0, *)
  public func makeIterator() -> CoreMIDI.MIDIPacket.ByteSequence.Iterator
}
extension Swift.UnsafePointer where Pointee == CoreMIDI.MIDIPacket {
  @available(macOS 10.15, iOS 13.0, *)
  public func sequence() -> CoreMIDI.MIDIPacket.ByteSequence
  @available(macOS 10.15, iOS 13.0, *)
  public func bytes() -> CoreMIDI.MIDIPacket.ByteCollection
}
extension CoreMIDI.MIDIPacket {
  @available(macOS 10.15, iOS 13.0, *)
  public class Builder {
    public var capacity: Swift.Int {
      get
    }
    public init(maximumNumberMIDIBytes: Swift.Int)
    @objc deinit
    public var count: Swift.Int {
      get
    }
    public var timeStamp: Swift.Int {
      get
      set(newValue)
    }
    public func append(_ midiBytes: Swift.UInt8...)
    public func withUnsafePointer<Result>(_ body: (Swift.UnsafePointer<CoreMIDI.MIDIPacket>) -> Result) -> Result
    public func withUnsafeMutableMIDIPacketPointer<Result>(_ body: (inout CoreMIDI.UnsafeMutableMIDIPacketPointer) -> Result) -> Result
  }
}
extension Swift.UnsafePointer where Pointee == CoreMIDI.MIDIPacketList {
  @available(macOS 10.15, iOS 13.0, *)
  public func unsafeSequence() -> CoreMIDI.MIDIPacketList.UnsafeSequence
}
extension CoreMIDI.MIDIPacketList {
  @available(macOS 10.15, iOS 13.0, *)
  public static func sizeInBytes(pktList: Swift.UnsafePointer<CoreMIDI.MIDIPacketList>) -> Swift.Int
  @available(macOS 10.15, iOS 13.0, *)
  public struct UnsafeSequence : Swift.Sequence {
    public func makeIterator() -> CoreMIDI.MIDIPacketList.UnsafeSequence.Iterator
    public var count: Swift.Int {
      get
    }
    public struct Iterator : Swift.IteratorProtocol {
      public init(_ s: CoreMIDI.MIDIPacketList.UnsafeSequence)
      public mutating func next() -> Swift.UnsafePointer<CoreMIDI.MIDIPacket>?
      public typealias Element = Swift.UnsafePointer<CoreMIDI.MIDIPacket>
    }
    public typealias Element = Swift.UnsafePointer<CoreMIDI.MIDIPacket>
  }
}
@available(macOS 10.15, iOS 13.0, *)
public struct UnsafeMutableMIDIPacketListPointer : Swift.Sequence {
  public var listSizeInBytes: Swift.Int {
    get
  }
  public var lastPacket: Swift.UnsafeMutablePointer<CoreMIDI.MIDIPacket>? {
    get
  }
  public init(_ p: Swift.UnsafeMutablePointer<CoreMIDI.MIDIPacketList>, byteSize: Swift.Int)
  public init?(_ p: Swift.UnsafeMutablePointer<CoreMIDI.MIDIPacketList>?, byteSize: Swift.Int)
  public var count: Swift.Int {
    get
  }
  public mutating func clear()
  @discardableResult
  public mutating func append(timestamp: CoreMIDI.MIDITimeStamp, data: [Swift.UInt8]) -> Swift.UnsafePointer<CoreMIDI.MIDIPacket>?
  public func makeIterator() -> CoreMIDI.MIDIPacketList.UnsafeSequence.Iterator
  public typealias Element = Swift.UnsafePointer<CoreMIDI.MIDIPacket>
  public typealias Iterator = CoreMIDI.MIDIPacketList.UnsafeSequence.Iterator
}
extension CoreMIDI.MIDIPacketList {
  @available(macOS 10.15, iOS 13.0, *)
  public class Builder {
    public init(byteSize: Swift.Int)
    @objc deinit
    @discardableResult
    public func append(timestamp: CoreMIDI.MIDITimeStamp, data: [Swift.UInt8]) -> Swift.UnsafePointer<CoreMIDI.MIDIPacket>?
    public func clear()
    public var count: Swift.Int {
      get
    }
    public func withUnsafePointer<Result>(_ body: (Swift.UnsafePointer<CoreMIDI.MIDIPacketList>) -> Result) -> Result
    public func withUnsafeMutableMIDIPacketListPointer<Result>(_ body: (inout CoreMIDI.UnsafeMutableMIDIPacketListPointer) -> Result) -> Result
  }
}
@available(*, deprecated, renamed: "MIDINoteAttribute.none")
@_alwaysEmitIntoClient public var kMIDINoteAttributeNone: Swift.Int {
  get { 0x0 }
}
@available(*, deprecated, renamed: "MIDINoteAttribute.manufacturerSpecific")
@_alwaysEmitIntoClient public var kMIDINoteAttributeManufacturerSpecific: Swift.Int {
  get { 0x1 }
}
@available(*, deprecated, renamed: "MIDINoteAttribute.profileSpecific")
@_alwaysEmitIntoClient public var kMIDINoteAttributeProfileSpecific: Swift.Int {
  get { 0x2 }
}
@available(*, deprecated, renamed: "MIDINoteAttribute.pitch")
@_alwaysEmitIntoClient public var kMIDINoteAttributePitch: Swift.Int {
  get { 0x3 }
}
