aura-glass
Version:
A comprehensive glassmorphism design system for React applications with 142+ production-ready components
38 lines • 1.33 kB
TypeScript
import React from 'react';
import { GlassProbeResult } from '../utils/glassStyleProbes';
export interface UseGlassProbesOptions {
/** Enable automatic monitoring for this component */
monitor?: boolean;
/** Probe interval in milliseconds */
probeInterval?: number;
/** Callback for compliance issues */
onComplianceIssue?: (result: GlassProbeResult) => void;
/** Callback for performance warnings */
onPerformanceWarning?: (result: GlassProbeResult) => void;
}
export interface GlassProbesData {
isMonitoring: boolean;
latestResult: GlassProbeResult | null;
complianceScore: number;
hasPerformanceIssues: boolean;
deprecationWarnings: string[];
}
/**
* Hook for monitoring glass elements with real-time probes
*/
export declare function useGlassProbes(options?: UseGlassProbesOptions): GlassProbesData;
/**
* Hook for monitoring a specific glass element by ref
*/
export declare function useGlassElementProbe<T extends HTMLElement>(elementRef: React.RefObject<T>, options?: UseGlassProbesOptions): GlassProbesData & {
probeElement: () => void;
};
/**
* Hook for glass development debugging
*/
export declare function useGlassDebug(): {
summary: any;
allResults: GlassProbeResult[];
exportData: () => void;
};
//# sourceMappingURL=useGlassProbes.d.ts.map