mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-07-30 08:23:01 +00:00
13 lines
715 B
TypeScript
13 lines
715 B
TypeScript
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<UseP2PReplicatorResult, "replicator">;
|
|
|
|
/** 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;
|
|
}
|