UNPKG

drizzle-cube

Version:

Drizzle ORM-first semantic layer with Cube.js compatibility. Type-safe analytics and dashboards with SQL injection protection.

19 lines (18 loc) 707 B
import { AnalysisConfig } from '../types/analysisConfig'; interface UseAnalysisShareOptions { /** Whether the current query is valid */ isValidQuery: boolean; /** * Getter for the AnalysisConfig (from store.save()) * This is the new Phase 3 API - returns complete AnalysisConfig */ getAnalysisConfig: () => AnalysisConfig; } interface UseAnalysisShareResult { /** Current share button state */ shareButtonState: 'idle' | 'copied' | 'copied-no-chart'; /** Handle share button click */ handleShare: () => Promise<void>; } export declare function useAnalysisShare({ isValidQuery, getAnalysisConfig, }: UseAnalysisShareOptions): UseAnalysisShareResult; export {};