/// /// import { ConversationItem, CreateSimpleBackendRequest, HTMLPage, ImplementAPIClients, StormFileImplementationPrompt, StormStream, StormUIImplementationPrompt, StormUIListPrompt } from './stream'; import { Page, StormEventPageUrl } from './events'; export declare const STORM_ID = "storm"; export declare const ConversationIdHeader = "Conversation-Id"; export declare const SystemIdHeader = "System-Id"; export declare const HandleHeader = "Handle"; export interface UIShellsPrompt { theme?: string; pages: { name: string; title: string; filename: string; path: string; method: string; requirements: string; }[]; } export interface UIPagePrompt { name: string; title: string; filename: string; prompt: string; path: string; method: string; description: string; storage_prefix: string; shell_page?: string; theme?: string; global_edit?: boolean; system_prompt?: string; existing_pages?: { path: string; description: string; }[]; existing_images?: { path: string; description: string; }[]; referenced_from?: { path: string; content: string; }; } export interface UIPageSamplePrompt extends UIPagePrompt { variantId: string; } export interface UIPageEditPrompt { planDescription: string; blockDescription: string; pages: Page[]; prompt: string; } export interface UIPageEditRequest { planDescription: string; blockDescription: string; pages: StormEventPageUrl['payload'][]; prompt: BasePromptRequest; } export interface UIPageVoteRequest { topic: string; vote: -1 | 0 | 1; mainConversationId: string; } export interface UIPageGetVoteRequest { topic: string; mainConversationId: string; } export interface BasePromptRequest { prompt: string; skipImprovement?: boolean; } export declare class StormClient { private readonly _baseUrl; private readonly _systemId; private readonly _handle; private readonly _sharedSecret; constructor(handle: string, systemId?: string); private createOptions; private send; createMetadata(prompt: BasePromptRequest, conversationId?: string): Promise; createUIPages(prompt: string, conversationId?: string): Promise; createUIUserJourneys(prompt: BasePromptRequest, conversationId?: string): Promise; createTheme(prompt: BasePromptRequest, conversationId?: string): Promise; createUIShells(prompt: UIShellsPrompt, conversationId?: string): Promise; createUILandingPages(prompt: BasePromptRequest, conversationId?: string): Promise; createUIPage(prompt: UIPagePrompt, conversationId?: string, history?: ConversationItem[]): Promise; voteUIPage(topic: string, conversationId: string, vote: -1 | 0 | 1, mainConversationId?: string): Promise; getVoteUIPage(topic: string, conversationId: string, mainConversationId?: string): Promise<{ vote: -1 | 0 | 1; }>; replaceMockWithAPICall(prompt: ImplementAPIClients): Promise; generatePrompt(pages: string[]): Promise; createSimpleBackend(handle: string, systemId: string, input: CreateSimpleBackendRequest): Promise; classifyUIReferences(prompt: string, conversationId?: string): Promise; editPages(prompt: UIPageEditPrompt, conversationId?: string): Promise; listScreens(prompt: StormUIListPrompt, conversationId?: string): Promise; createImage(prompt: string, conversationId?: string): Promise; createUIImplementation(prompt: StormUIImplementationPrompt, conversationId?: string): Promise; createServiceImplementation(prompt: StormFileImplementationPrompt, conversationId?: string): Promise; createErrorClassification(prompt: string, history?: ConversationItem[], conversationId?: string): Promise; createCodeFix(prompt: string, history?: ConversationItem[], conversationId?: string): Promise; createErrorDetails(prompt: string, history?: ConversationItem[], conversationId?: string): Promise; generateCode(prompt: StormFileImplementationPrompt, conversationId?: string): Promise; deleteUIPageConversation(conversationId: string): Promise; downloadSystem(handle: string, conversationId: string): Promise; uploadSystem(handle: string, conversationId: string, buffer: Buffer): Promise; private getSharedSecretHeader; }