UNPKG

bigblocks

Version:

Complete Bitcoin UI component library - authentication, social, wallet, market, inscriptions, and blockchain interactions for React

42 lines 1.41 kB
import type { ProtocolDataArray } from "../../social/types/protocol.js"; import type { BmapTransactionData, MetaLensComment, MetaLensContextType, PostCommentParams } from "../types/index.js"; export declare const METALENS_PROTOCOL: { APP: string; VERSION: string; }; /** * Build MAP protocol data for MetaLens comments */ export declare function buildMetaLensMapData(params: { context: MetaLensContextType; value: string; subcontext?: string; subcontextValue?: string; parentId?: string; tags?: string[]; mentions?: string[]; }): Record<string, string>; /** * Build a complete MetaLens comment transaction */ export declare function buildMetaLensTransaction(params: PostCommentParams): ProtocolDataArray; /** * Parse MetaLens comment from transaction data */ export declare function parseMetaLensComment(data: BmapTransactionData): MetaLensComment | null; /** * Build EventSource URL for real-time updates */ export declare function buildMetaLensStreamUrl(apiUrl: string, context: MetaLensContextType, value: string): string; /** * Validate context type and value */ export declare function validateContext(type: MetaLensContextType, value: string): { valid: boolean; error?: string; }; /** * Format context for display */ export declare function formatContextDisplay(type: MetaLensContextType, value: string): string; //# sourceMappingURL=protocol.d.ts.map