import type { RequiredServices } from "@vrtmrz/livesync-commonlib/compat/interfaces/ServiceModule"; import type { PeerStatus } from "@vrtmrz/livesync-commonlib/compat/replication/trystero/P2PReplicatorPaneCommon"; import type { UseP2PReplicatorResult } from "@vrtmrz/livesync-commonlib/compat/replication/trystero/UseP2PReplicatorResult"; export type P2PReplicatorHandle = Pick; /** Host capabilities consumed by the shared P2P pane. */ export interface P2PReplicatorPaneHost { readonly services: RequiredServices<"API" | "config" | "setting" | "vault">; readonly p2p: P2PReplicatorHandle; readonly showPeerMenu?: (peer: PeerStatus, event: MouseEvent) => void; }