import { default as React } from 'react'; import { GpuFailureReason } from '../../core'; export interface ShaderContextValue { shaderParentId: string; shaderNodeRegister: (id: string, fragmentNodeFunc: any, parentId: string | null, metadata: any, uniforms: any, componentDefinition?: any, domCanvas?: HTMLCanvasElement) => void; shaderUniformUpdate: (nodeId: string, uniformName: string, value: any) => void; shaderMetadataUpdate: (nodeId: string, metadata: any) => void; shaderColorSpace: 'p3-linear' | 'srgb'; } export declare const ShaderContext: React.Context; interface ShaderProps { children?: React.ReactNode; disableTelemetry?: boolean; colorSpace?: 'p3-linear' | 'srgb'; toneMapping?: 'linear' | 'reinhard' | 'cineon' | 'aces' | 'agx' | 'neutral' | 'hable' | 'unreal'; isPreview?: boolean; onReady?: () => void; /** * This browser/GPU cannot run the shader, so the canvas will stay transparent for good. * Fires at most once, and nothing is written to the console — render your own static * fallback (a gradient, an image) from this callback if you want one. */ onUnavailable?: (reason: GpuFailureReason) => void; style?: React.CSSProperties; className?: string; [key: string]: any; } /** * Root Shader component that initializes the renderer and provides context to children */ export declare const Shader: React.FC; export default Shader; //# sourceMappingURL=Shader.d.ts.map