import type { HostSurfaceContextCapability, Surface, SurfaceWithContext } from '@flighthq/surface/contract'; type GlContextMember = 'ACTIVE_TEXTURE' | 'ACTIVE_UNIFORMS' | 'ALWAYS' | 'ARRAY_BUFFER' | 'BACK' | 'BLEND' | 'BLEND_DST_ALPHA' | 'BLEND_DST_RGB' | 'BLEND_EQUATION_ALPHA' | 'BLEND_EQUATION_RGB' | 'BLEND_SRC_ALPHA' | 'BLEND_SRC_RGB' | 'CCW' | 'CLAMP_TO_EDGE' | 'COLOR' | 'COLOR_ATTACHMENT0' | 'COLOR_BUFFER_BIT' | 'COLOR_CLEAR_VALUE' | 'COLOR_WRITEMASK' | 'COMPILE_STATUS' | 'CULL_FACE' | 'CULL_FACE_MODE' | 'CURRENT_PROGRAM' | 'CW' | 'DECR_WRAP' | 'DEPTH24_STENCIL8' | 'DEPTH_BUFFER_BIT' | 'DEPTH_FUNC' | 'DEPTH' | 'DEPTH_STENCIL' | 'DEPTH_STENCIL_ATTACHMENT' | 'DEPTH_TEST' | 'DEPTH_WRITEMASK' | 'DRAW_FRAMEBUFFER' | 'DST_COLOR' | 'DYNAMIC_DRAW' | 'ELEMENT_ARRAY_BUFFER' | 'EQUAL' | 'FLOAT' | 'FLOAT_MAT2' | 'FLOAT_MAT3' | 'FLOAT_MAT4' | 'FLOAT_VEC2' | 'FLOAT_VEC3' | 'FLOAT_VEC4' | 'FRAGMENT_SHADER' | 'FRAMEBUFFER' | 'FRAMEBUFFER_BINDING' | 'FRAMEBUFFER_COMPLETE' | 'FRONT' | 'FRONT_FACE' | 'FUNC_ADD' | 'FUNC_REVERSE_SUBTRACT' | 'HALF_FLOAT' | 'INCR_WRAP' | 'INVERT' | 'KEEP' | 'LESS' | 'LINEAR' | 'LINEAR_MIPMAP_LINEAR' | 'LINEAR_MIPMAP_NEAREST' | 'LINES' | 'LINE_STRIP' | 'LINK_STATUS' | 'MAX' | 'MAX_SAMPLES' | 'MAX_TEXTURE_IMAGE_UNITS' | 'MAX_TEXTURE_SIZE' | 'MIN' | 'MIRRORED_REPEAT' | 'NEAREST' | 'NEAREST_MIPMAP_LINEAR' | 'NEAREST_MIPMAP_NEAREST' | 'NONE' | 'NOTEQUAL' | 'ONE' | 'ONE_MINUS_SRC_ALPHA' | 'ONE_MINUS_SRC_COLOR' | 'POINTS' | 'READ_FRAMEBUFFER' | 'RENDERBUFFER' | 'RENDERBUFFER_BINDING' | 'REPEAT' | 'RGBA' | 'RGBA16F' | 'RGBA32F' | 'RGBA8' | 'SCISSOR_BOX' | 'SCISSOR_TEST' | 'SRGB8_ALPHA8' | 'STATIC_DRAW' | 'STENCIL_BACK_FAIL' | 'STENCIL_BACK_FUNC' | 'STENCIL_BACK_PASS_DEPTH_FAIL' | 'STENCIL_BACK_PASS_DEPTH_PASS' | 'STENCIL_BACK_REF' | 'STENCIL_BACK_VALUE_MASK' | 'STENCIL_BACK_WRITEMASK' | 'STENCIL' | 'STENCIL_BUFFER_BIT' | 'STENCIL_FAIL' | 'STENCIL_FUNC' | 'STENCIL_PASS_DEPTH_FAIL' | 'STENCIL_PASS_DEPTH_PASS' | 'STENCIL_REF' | 'STENCIL_TEST' | 'STENCIL_VALUE_MASK' | 'STENCIL_WRITEMASK' | 'STREAM_DRAW' | 'TEXTURE0' | 'TEXTURE1' | 'TEXTURE2' | 'TEXTURE3' | 'TEXTURE_2D' | 'TEXTURE_2D_ARRAY' | 'TEXTURE_3D' | 'TEXTURE_BINDING_2D' | 'TEXTURE_BINDING_CUBE_MAP' | 'TEXTURE_CUBE_MAP' | 'TEXTURE_CUBE_MAP_POSITIVE_X' | 'TEXTURE_MAG_FILTER' | 'TEXTURE_MAX_LEVEL' | 'TEXTURE_MIN_FILTER' | 'TEXTURE_WRAP_R' | 'TEXTURE_WRAP_S' | 'TEXTURE_WRAP_T' | 'TRIANGLES' | 'TRIANGLE_FAN' | 'TRIANGLE_STRIP' | 'UNPACK_PREMULTIPLY_ALPHA_WEBGL' | 'UNSIGNED_BYTE' | 'UNSIGNED_INT' | 'UNSIGNED_INT_24_8' | 'UNSIGNED_SHORT' | 'VERTEX_ARRAY_BINDING' | 'VERTEX_SHADER' | 'VIEWPORT' | 'ZERO' | 'activeTexture' | 'attachShader' | 'bindBuffer' | 'bindFramebuffer' | 'bindRenderbuffer' | 'bindTexture' | 'bindVertexArray' | 'blendEquation' | 'blendEquationSeparate' | 'blendFunc' | 'blendFuncSeparate' | 'blitFramebuffer' | 'bufferData' | 'bufferSubData' | 'checkFramebufferStatus' | 'clear' | 'clearBufferfi' | 'clearBufferfv' | 'clearBufferiv' | 'clearColor' | 'clearDepth' | 'colorMask' | 'compileShader' | 'compressedTexImage2D' | 'compressedTexSubImage3D' | 'createBuffer' | 'createFramebuffer' | 'createProgram' | 'createRenderbuffer' | 'createShader' | 'createTexture' | 'createVertexArray' | 'cullFace' | 'deleteBuffer' | 'deleteFramebuffer' | 'deleteProgram' | 'deleteRenderbuffer' | 'deleteShader' | 'deleteTexture' | 'deleteVertexArray' | 'depthFunc' | 'depthMask' | 'disable' | 'disableVertexAttribArray' | 'drawArrays' | 'drawArraysInstanced' | 'drawBuffers' | 'drawElements' | 'drawElementsInstanced' | 'drawingBufferHeight' | 'drawingBufferWidth' | 'enable' | 'enableVertexAttribArray' | 'finish' | 'flush' | 'framebufferRenderbuffer' | 'framebufferTexture2D' | 'frontFace' | 'generateMipmap' | 'getActiveUniform' | 'getAttribLocation' | 'getExtension' | 'getParameter' | 'getProgramInfoLog' | 'getProgramParameter' | 'getShaderInfoLog' | 'getShaderParameter' | 'getUniformLocation' | 'isEnabled' | 'linkProgram' | 'pixelStorei' | 'readBuffer' | 'readPixels' | 'renderbufferStorage' | 'renderbufferStorageMultisample' | 'scissor' | 'shaderSource' | 'stencilFunc' | 'stencilFuncSeparate' | 'stencilMask' | 'stencilMaskSeparate' | 'stencilOp' | 'stencilOpSeparate' | 'texImage2D' | 'texImage3D' | 'texParameterf' | 'texParameteri' | 'texStorage3D' | 'texSubImage2D' | 'uniform1f' | 'uniform1fv' | 'uniform1i' | 'uniform2f' | 'uniform2fv' | 'uniform3f' | 'uniform3fv' | 'uniform4f' | 'uniform4fv' | 'uniformMatrix3fv' | 'uniformMatrix4fv' | 'useProgram' | 'vertexAttrib4f' | 'vertexAttribDivisor' | 'vertexAttribPointer' | 'viewport'; export interface GlContext extends Pick { } export interface GlContextOptions { readonly antialias?: boolean; readonly contextAttributes?: WebGLContextAttributes; readonly powerPreference?: WebGLPowerPreference; } export type GlSurface = SurfaceWithContext; export interface GlCapabilities { maxTextureSize: number; maxTextureUnits: number; maxSamples: number; maxDrawBuffers: number; maxColorAttachments: number; maxRenderbufferSize: number; supportsColorBufferFloat: boolean; supportsFloatLinear: boolean; supportsSrgb: boolean; maxAnisotropy: number; } export interface HostGlCapability extends HostSurfaceContextCapability { subscribe(surface: Readonly, onLost: () => void, onRestored: () => void): () => void; } export interface HostGlCapabilities { readonly context?: HostGlCapability; } export {}; //# sourceMappingURL=types.d.ts.map