import { ReadableBitStream, ReadableByteStream } from "@open-flash/stream"; import { UintSize } from "semantic-types"; import * as fillStyles from "swf-types/fill-styles/index"; import { MorphFillStyle } from "swf-types/morph-fill-style"; import { MorphLineStyle } from "swf-types/morph-line-style"; import { MorphShapeRecord } from "swf-types/morph-shape-record"; import { MorphShape } from "swf-types/morph-shape"; import { Edge } from "swf-types/shape-records/edge"; import { MorphStyleChange } from "swf-types/shape-records/morph-style-change"; export declare enum MorphShapeVersion { MorphShape1 = 1, MorphShape2 = 2 } export declare function parseMorphShape(byteStream: ReadableByteStream, morphShapeVersion: MorphShapeVersion): MorphShape; export declare function parseMorphShapeBits(bitStream: ReadableBitStream, morphShapeVersion: MorphShapeVersion): MorphShape; export interface ParserMorphShapeStyles { fill: MorphFillStyle[]; line: MorphLineStyle[]; fillBits: UintSize; lineBits: UintSize; } export declare function parseMorphShapeStylesBits(bitStream: ReadableBitStream, morphShapeVersion: MorphShapeVersion): ParserMorphShapeStyles; export declare type MixedShapeRecord = Edge | MorphStyleChange; export declare function parseMorphShapeStartRecordStringBits(bitStream: ReadableBitStream, fillBits: UintSize, lineBits: UintSize, morphShapeVersion: MorphShapeVersion): MixedShapeRecord[]; export declare function parseMorphShapeEndRecordStringBits(bitStream: ReadableBitStream, startRecords: MixedShapeRecord[], fillBits: UintSize, lineBits: UintSize, morphShapeVersion: MorphShapeVersion): MorphShapeRecord[]; export declare function parseMorphStyleChangeBits(bitStream: ReadableBitStream, fillBits: UintSize, lineBits: UintSize, morphShapeVersion: MorphShapeVersion): [MorphStyleChange, [UintSize, UintSize]]; export declare function parseMorphFillStyleList(byteStream: ReadableByteStream): MorphFillStyle[]; export declare function parseMorphFillStyle(byteStream: ReadableByteStream): MorphFillStyle; export declare function parseMorphBitmapFill(byteStream: ReadableByteStream, repeating: boolean, smoothed: boolean): fillStyles.MorphBitmap; export declare function parseMorphFocalGradientFill(byteStream: ReadableByteStream): fillStyles.MorphFocalGradient; export declare function parseMorphLinearGradientFill(byteStream: ReadableByteStream): fillStyles.MorphLinearGradient; export declare function parseMorphRadialGradientFill(byteStream: ReadableByteStream): fillStyles.MorphRadialGradient; export declare function parseMorphSolidFill(byteStream: ReadableByteStream): fillStyles.MorphSolid; export declare function parseMorphLineStyleList(byteStream: ReadableByteStream, morphShapeVersion: MorphShapeVersion): MorphLineStyle[]; export declare function parseMorphLineStyle1(byteStream: ReadableByteStream): MorphLineStyle; export declare function parseMorphLineStyle2(byteStream: ReadableByteStream): MorphLineStyle;