import type { ProtocolCreateOptions, Protocols, Waku } from "@waku/interfaces"; import type { RelayCreateOptions } from "@waku/relay"; import type { waku } from "@waku/sdk"; export type HookState = { isLoading: boolean; error: undefined | string; }; export type CrateNodeResult = HookState & { node: undefined | T; }; export type BootstrapNodeOptions = { options?: T; protocols?: Protocols[]; }; export type LightNodeOptions = ProtocolCreateOptions & waku.WakuOptions; export type RelayNodeOptions = ProtocolCreateOptions & waku.WakuOptions & Partial; export type ContentPair = { encoder: waku.Encoder; decoder: waku.Decoder; }; export type ReactChildrenProps = { children?: React.ReactNode; };