diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..cc8e64f --- /dev/null +++ b/index.d.ts @@ -0,0 +1,40 @@ +/** + * 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'; \ No newline at end of file