UNPKG

@stacksjs/stx

Version:

A performant UI Framework. Powered by Bun.

39 lines 968 B
/** * Initialize a new stx file with the specified name */ export declare function initFile(fileName?: string, options?: InitOptions): Promise<boolean>; /** * Available template presets with descriptions */ export declare const TEMPLATE_PRESETS: { basic: { description: 'Simple page with script, style, and template sections' }; component: { description: 'Reusable component with props and slots' }; layout: { description: 'Layout template with sections and yields' }; blog: { description: 'Blog post with frontmatter-style variables' }; api: { description: 'API endpoint template with JSON response' }; app: { description: 'Full app with stores and components' } }; /** * Options for initializing a new stx file */ declare interface InitOptions { force?: boolean template?: string preset?: TemplatePreset } /** * Built-in template presets */ declare type TemplatePreset = 'basic' | 'component' | 'layout' | 'blog' | 'api' | 'app'