/** * storytellingjs - Core Story Class * * Parity with Python storytelling/core.py */ import type { Story as StoryInterface } from './types.js'; /** * A basic story class for storytelling applications. * Matches Python storytelling/core.py Story class. */ export declare class Story implements StoryInterface { title: string; content: string; metadata: Record; /** * Initialize a new story. * @param title - The title of the story * @param content - The content of the story */ constructor(title: string, content?: string); /** * Add content to the story. * @param content - Content to add to the story */ addContent(content: string): void; /** * Set metadata for the story. * @param key - Metadata key * @param value - Metadata value */ setMetadata(key: string, value: string): void; /** * Get metadata value by key. * @param key - Metadata key * @returns Metadata value or undefined */ getMetadata(key: string): string | undefined; /** * String representation of the story. */ toString(): string; /** * Get content preview (first n characters). */ getPreview(length?: number): string; /** * Export story to markdown format. */ toMarkdown(): string; /** * Create a Story from markdown content. */ static fromMarkdown(markdown: string): Story; } //# sourceMappingURL=core.d.ts.map