Files
boris/node_modules/applesauce-factory/dist/operations/highlight.d.ts
Gigi 5d53a827e0 feat: initialize markr nostr bookmark client
- Add project structure with TypeScript, React, and Vite
- Implement nostr authentication using browser extension (NIP-07)
- Add NIP-51 compliant bookmark fetching and display
- Create minimal UI with login and bookmark components
- Integrate applesauce-core and applesauce-react libraries
- Add responsive styling with dark/light mode support
- Include comprehensive README with setup instructions

This is a minimal MVP for a nostr bookmark client that allows users to
view their bookmarks according to NIP-51 specification.
2025-10-02 07:17:07 +02:00

19 lines
1.2 KiB
TypeScript

import { HighlightAttribution } from "applesauce-core/helpers";
import { NostrEvent } from "nostr-tools";
import { AddressPointer, EventPointer } from "nostr-tools/nip19";
import { EventOperation } from "../types.js";
/** Sets the content (highlighted text) for a highlight event */
export declare function setHighlightContent(content: string): EventOperation;
/** Sets the source event that was highlighted using an 'e' tag */
export declare function setSource(source: NostrEvent | EventPointer | AddressPointer | string): EventOperation;
/** Attribution role types for highlight events */
export type AttributionRole = "author" | "editor" | "mention";
/** Sets attribution for a pubkey with optional role using 'p' tags */
export declare function addAttribution(attribution: HighlightAttribution): EventOperation;
/** Sets the context text for the highlight using a 'context' tag */
export declare function setContext(context: string): EventOperation;
/** Sets a comment for the highlight using a 'comment' tag to create a quote highlight */
export declare function setComment(comment: string): EventOperation;
/** Sets multiple attributions at once */
export declare function setAttributions(attributions: HighlightAttribution[]): EventOperation;