import { SkPoint } from "../core/SkPoint"; import { SkPathOpsBounds } from "./SkPathOpsBounds"; import { SkOpGlobalState } from "./SkPathOpsTypes"; import { SkPathWriter } from "./SkPathWriter"; import { SkOpRayDir, SkOpRayHit, SkOpSegment } from "./SkOpSegment"; import type { SkOpSpan } from "./SkOpSpan"; export declare class SkOpContour { protected fState: SkOpGlobalState; protected fHead: SkOpSegment; protected fTail: SkOpSegment; protected fNext: SkOpContour; protected fBounds: SkPathOpsBounds; protected fCcw: number; protected fCount: number; protected fDone: boolean; protected fOperand: boolean; protected fReverse: boolean; protected fXor: boolean; protected fOppXor: boolean; constructor(); lessThan(rh: SkOpContour): boolean; addConic(pts: SkPoint[], weight: number): void; addCubic(pts: SkPoint[]): void; addLine(pts: SkPoint[]): SkOpSegment; addQuad(pts: SkPoint[]): void; appendSegment(): SkOpSegment; bounds(): SkPathOpsBounds; calcAngles(): void; complete(): void; count(): number; done(): boolean; end(): SkPoint; first(): SkOpSegment; init(globalState: SkOpGlobalState, operand: boolean, isXor: boolean): void; globalState(): SkOpGlobalState; isCcw(): number; isXor(): boolean; joinSegments(): void; markAllDone(): void; missingCoincidence(): boolean; moveMultiples(): boolean; moveNearby(): boolean; next(): SkOpContour; operand(): boolean; oppXor(): boolean; reset(): void; resetReverse(): void; reversed(): boolean; setBounds(): void; setCcw(ccw: number): void; setGlobalState(state: SkOpGlobalState): void; setNext(contour: SkOpContour): void; setOperand(isOp: boolean): void; setOppXor(isOppXor: boolean): void; setReverse(): void; setXor(isXor: boolean): void; rayCheck(base: SkOpRayHit, dir: SkOpRayDir, hits: SkOpRayHit[]): void; findSortableTop(contourHead: SkOpContour): SkOpSpan; sortAngles(): boolean; start(): SkPoint; toPartialBackward(path: SkPathWriter): void; toPartialForward(path: SkPathWriter): void; toReversePath(path: SkPathWriter): void; toPath(path: SkPathWriter): void; undoneSpan(): SkOpSpan; } export declare class SkOpContourHead extends SkOpContour { appendContour(): SkOpContour; joinAllSegments(): void; remove(contour: SkOpContour): void; } export declare class SkOpContourBuilder { protected fContour: SkOpContour; protected fLastLine: SkPoint[]; protected fLastIsLine: boolean; constructor(contour: SkOpContour); addConic(pts: SkPoint[], weight: number): void; addCubic(pts: SkPoint[]): void; addCurve(verb: number, pts: SkPoint[], weight?: number): void; addLine(pts: SkPoint[]): void; addQuad(pts: SkPoint[]): void; flush(): void; contour(): SkOpContour; setContour(contour: SkOpContour): void; }