import { ApiError } from './widget-api-client.js'; export interface AsyncState { data: T | null; loading: boolean; error: ApiError | null; } export interface UseRegnaDataOptions { /** When true, the fetcher is never invoked. Used by preview-mode * widgets to short-circuit the network call (CLAUDE.md A04). The * hook returns a stable {data:null, loading:false, error:null} * state so widget consumers can branch their render on the * separate render-mode signal without a useless loading spinner. */ skip?: boolean; } export declare function useRegnaData(fetcher: () => Promise, deps: unknown[], options?: UseRegnaDataOptions): AsyncState; //# sourceMappingURL=use-regna-data.d.ts.map