UNPKG

@stacksjs/stx

Version:

A performant UI Framework. Powered by Bun.

21 lines 661 B
import type { ServerStoryFile, ServerTree, StoryConfig, StoryContext } from './types'; /** * Create a story context */ export declare function createContext(options: CreateContextOptions): Promise<StoryContext>; /** * Update context with discovered story files */ export declare function updateContextStoryFiles(ctx: StoryContext, storyFiles: ServerStoryFile[]): void; /** * Update context with built tree */ export declare function updateContextTree(ctx: StoryContext, tree: ServerTree): void; /** * Options for creating a story context */ export declare interface CreateContextOptions { mode: 'dev' | 'build' root?: string config?: StoryConfig }