/** @packageDocumentation
 * @module WebGL
 */
import { Point3d, Range3d, Transform } from "@itwin/core-geometry";
import { InstancedGraphicParams, PatternGraphicParams } from "../../common/render/InstancedGraphicParams";
import { RenderMemory } from "../RenderMemory";
import { CachedGeometry, LUTGeometry } from "./CachedGeometry";
import { ShaderProgramParams } from "./DrawCommand";
import { BufferHandle, BufferParameters } from "./AttributeBuffers";
import { Target } from "./Target";
import { TechniqueId } from "./TechniqueId";
import { Matrix4 } from "./Matrix";
/** @internal */
export declare function isInstancedGraphicParams(params: any): params is InstancedGraphicParams;
declare class InstanceData {
    readonly numInstances: number;
    readonly range: Range3d;
    private readonly _rtcOnlyTransform;
    private readonly _rtcModelTransform;
    private readonly _modelMatrix;
    protected constructor(numInstances: number, rtcCenter: Point3d, range: Range3d);
    getRtcModelTransform(modelMatrix: Transform): Transform;
    getRtcOnlyTransform(): Transform;
    private static readonly _noFeatureId;
    get patternFeatureId(): Float32Array;
}
/** @internal */
export interface PatternTransforms {
    readonly orgTransform: Matrix4;
    readonly localToModel: Matrix4;
    readonly symbolToLocal: Matrix4;
    readonly origin: Float32Array;
}
/** @internal */
export declare class InstanceBuffers extends InstanceData {
    private static readonly _patternParams;
    readonly transforms: BufferHandle;
    readonly featureIds?: BufferHandle;
    readonly hasFeatures: boolean;
    readonly symbology?: BufferHandle;
    readonly patternParams: Float32Array;
    readonly patternTransforms: undefined;
    readonly viewIndependentOrigin: undefined;
    private constructor();
    static createTransformBufferParameters(techniqueId: TechniqueId): BufferParameters[];
    static create(params: InstancedGraphicParams, range: Range3d): InstanceBuffers | undefined;
    get isDisposed(): boolean;
    dispose(): void;
    collectStatistics(stats: RenderMemory.Statistics): void;
    private static extendTransformedRange;
    static computeRange(reprRange: Range3d, tfs: Float32Array, rtcCenter: Point3d, out?: Range3d): Range3d;
}
/** @internal */
export declare class PatternBuffers extends InstanceData {
    readonly patternParams: Float32Array;
    readonly origin: Float32Array;
    readonly orgTransform: Matrix4;
    readonly localToModel: Matrix4;
    readonly symbolToLocal: Matrix4;
    readonly offsets: BufferHandle;
    readonly viewIndependentOrigin: Point3d | undefined;
    private readonly _featureId?;
    private constructor();
    static create(params: PatternGraphicParams): PatternBuffers | undefined;
    readonly patternTransforms: PatternTransforms;
    get hasFeatures(): boolean;
    get patternFeatureId(): Float32Array;
    get isDisposed(): boolean;
    dispose(): void;
    collectStatistics(stats: RenderMemory.Statistics): void;
}
/** @internal */
export declare class InstancedGeometry extends CachedGeometry {
    private readonly _buffersContainer;
    private readonly _buffers;
    private readonly _repr;
    private readonly _ownsBuffers;
    getRtcModelTransform(modelMatrix: Transform): Transform;
    getRtcOnlyTransform(): Transform;
    get viewIndependentOrigin(): Point3d | undefined;
    get asInstanced(): this;
    get asLUT(): LUTGeometry;
    get asMesh(): import("./MeshGeometry").MeshGeometry | undefined;
    get asSurface(): import("./SurfaceGeometry").SurfaceGeometry | undefined;
    get asEdge(): import("./EdgeGeometry").EdgeGeometry | undefined;
    get asSilhouette(): import("./EdgeGeometry").SilhouetteEdgeGeometry | undefined;
    get asIndexedEdge(): import("./IndexedEdgeGeometry").IndexedEdgeGeometry | undefined;
    get renderOrder(): import("./RenderFlags").RenderOrder;
    get isLitSurface(): boolean;
    get hasBakedLighting(): boolean;
    get hasAnimation(): boolean;
    get usesQuantizedPositions(): boolean;
    get qOrigin(): Float32Array;
    get qScale(): Float32Array;
    get materialInfo(): import("./Material").MaterialInfo | undefined;
    get polylineBuffers(): import("./CachedGeometry").PolylineBuffers | undefined;
    get isEdge(): boolean;
    get hasFeatures(): boolean;
    get techniqueId(): TechniqueId;
    get supportsThematicDisplay(): boolean;
    getPass(target: Target): import("./RenderFlags").Pass;
    wantWoWReversal(params: ShaderProgramParams): boolean;
    getLineCode(params: ShaderProgramParams): number;
    getLineWeight(params: ShaderProgramParams): number;
    wantMonochrome(target: Target): boolean;
    wantMixMonochromeColor(target: Target): boolean;
    static create(repr: LUTGeometry, ownsBuffers: boolean, buffers: InstanceBuffers): InstancedGeometry;
    static createPattern(repr: LUTGeometry, ownsBuffers: boolean, buffers: PatternBuffers): InstancedGeometry;
    private constructor();
    get isDisposed(): boolean;
    dispose(): void;
    protected _wantWoWReversal(_target: Target): boolean;
    draw(): void;
    computeRange(output?: Range3d): Range3d;
    collectStatistics(stats: RenderMemory.Statistics): void;
    get patternParams(): Float32Array;
    get patternTransforms(): PatternTransforms | undefined;
    get patternFeatureId(): Float32Array;
}
export {};
//# sourceMappingURL=InstancedGeometry.d.ts.map