Files
boris/node_modules/applesauce-factory/dist/operations/poll.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

20 lines
1.1 KiB
TypeScript

import { PollType } from "applesauce-core/helpers";
import { EventOperation } from "../types.js";
/** Sets the content (poll question/label) for a poll event */
export declare function setQuestion(question: string): EventOperation;
/** Adds an option to a poll with an option ID and label */
export declare function addOption(optionId: string, label: string): EventOperation;
/** Sets multiple poll options at once, replacing any existing option tags */
export declare function setOptions(options: Array<{
id: string;
label: string;
}>): EventOperation;
/** Sets the poll type (singlechoice or multiplechoice) */
export declare function setType(pollType: PollType): EventOperation;
/** Sets the poll expiration timestamp */
export declare function setEndsAt(timestamp: number): EventOperation;
/** Adds a relay URL where poll responses should be published */
export declare function addRelay(relayUrl: string): EventOperation;
/** Sets multiple relay URLs at once, replacing any existing relay tags */
export declare function setRelays(relayUrls: string[]): EventOperation;