UNPKG

@stacksjs/stx

Version:

A performant UI Framework. Powered by Bun.

26 lines 697 B
import type { StoryContext } from './types'; /** * Watch the config file for changes */ export declare function watchConfigFile(ctx: StoryContext, options: ConfigWatcherOptions): ConfigWatcher; /** * Get the config file path if it exists */ export declare function findConfigFile(root: string): string | null; /** * Get the last modified time of the config file */ export declare function getConfigModifiedTime(root: string): Promise<number | null>; /** * Config watcher options */ export declare interface ConfigWatcherOptions { onChange: () => void | Promise<void> debounceMs?: number } /** * Config watcher instance */ export declare interface ConfigWatcher { stop: () => void }