Ariver
2026-08-14 21e9dd7c95e3f58a19a7c7342ff3d6584eb9097e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import AppKit
import CoreGraphics
import Foundation
 
@MainActor
public protocol OverlayHostProtocol {
    func show(context: OverlayContext)
    func hide(reason: DismissReason)
    func promoteForTextInput(allowAppActivation: Bool)
    func attachChild(_ window: NSWindow)
    func detachChild(_ window: NSWindow)
    func beginSheet(_ panel: NSPanel, completion: (() -> Void)?)
    var currentLevel: CGWindowLevel { get }
}
 
@MainActor
public protocol TriggerServiceProtocol {
    func start()
    func stop()
    var onQuickSwitch: (() -> Void)? { get set }
}