UNPKG

bigblocks

Version:

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

32 lines 975 B
import type { MetaLensContextType } from "../types/index.js"; /** * Hook for detecting and parsing MetaLens contexts * * Based on patterns from: * - MetaLens browser extension context detection * - Various context type implementations * * @example * ```tsx * const { detectContext, parseContext } = useMetaLensContext(); * * // Detect context from current page * const context = detectContext(); * * // Parse a specific identifier * const parsed = parseContext('https://example.com/article'); * // Returns: { type: 'url', value: 'https://example.com/article' } * ``` */ export declare function useMetaLensContext(): { detectContext: () => { type: MetaLensContextType; value: string; } | null; parseContext: (identifier: string) => { type: MetaLensContextType; value: string; }; formatContextDisplay: (type: MetaLensContextType, value: string) => string; }; //# sourceMappingURL=useMetaLensContext.d.ts.map