40 lines
835 B
TypeScript
40 lines
835 B
TypeScript
/**
|
|
* Type declarations for @metatrom/libp2p-native-bridge
|
|
*/
|
|
|
|
// Main component exports
|
|
export { Libp2pComponent, SimplePeerId, SimpleMultiaddr } from './implementations/Libp2pComponent';
|
|
|
|
// Settings exports
|
|
export {
|
|
SettingsService,
|
|
getSettingsService,
|
|
DEFAULT_SETTINGS,
|
|
type AppSettings,
|
|
type INativeModules
|
|
} from './implementations/SettingsService';
|
|
|
|
// UI Components
|
|
export { SettingsUI } from './implementations/SettingsUI';
|
|
|
|
// Interface exports
|
|
export type {
|
|
Connection,
|
|
ILibp2pComponent,
|
|
Libp2pEvents,
|
|
Libp2pOptions,
|
|
Multiaddr,
|
|
PeerId,
|
|
PeerInfo,
|
|
ProtocolHandler,
|
|
} from './interfaces/ILibp2pComponent';
|
|
|
|
// Type exports
|
|
export type {
|
|
ConnectionStatusEvent,
|
|
PeerDiscoveredEvent,
|
|
PeerInfoEvent
|
|
} from './utils/types';
|
|
|
|
// Constant exports
|
|
export { LIBP2P_CONFIG } from './utils/constants'; |