import { GerberData } from '../index'; import { ChildNode, Coordinates, Format, Root, ZeroSuppression } from '@tracespace/parser'; export declare function isGerber(fileData: string): boolean; export declare function combineGerbers(treeA: any, treeB: any): never[]; export declare function moveGerber(tree: Root, xAmt: number, yAmt: number): Root; export declare function getUnitType(gerberTree: Root): string; export declare function gerberType(filename: string, gerberData: string): string | null; export declare function includesLayer(layer: string, gerbers: GerberData[]): boolean; export declare function getModifiedGerber(layer: string, gerbers: GerberData[]): string | null; export declare function getExtension(filename: string): string | null; export declare function includesLayers(layers: string[], gerbers: GerberData[]): { missingAny: boolean; missingLayer: string; }; export declare function gerberCoordinateToFloat(coordinate: string, coordinateFormat: Format, zeroSuppression?: ZeroSuppression): any; export declare function floatToGerberCoordinate(coordinate: number, coordinateFormat: Format): string; export declare type Dimensions = { height: number; width: number; }; export declare function getPcbDimensions(gerbers: GerberData[], includeOffset?: boolean, panel?: boolean): Dimensions; export declare function getGerberDimensions(gerberTree: Root, includeOffset?: boolean): Dimensions; export declare function getGerberDimensionsByLayer(layer: string, gerbers: GerberData[], includeOffset?: boolean, panel?: boolean): Dimensions; export declare function getGerberPanelDimensionsByLayer(layer: string, gerbers: GerberData[], includeOffset?: boolean): Dimensions; export declare function getOffsetAmount(gerbers: GerberData[]): Coordinates; export declare function offsetGerbers(gerbers: GerberData[], smallestCoordinates: Coordinates): void; export declare type splitTree = { header: ChildNode[] | null; body: ChildNode[] | null; }; export declare function separateTree(gerberTree: Root, type?: string): splitTree; export declare function removeUnsupportedDrillTokens(drillTxt: string): string; export declare function distance(a: { x: number; y: number; }, b: { x: number; y: number; }): number; export declare function isBetween(a: any, b: any, c: any): boolean; export declare function normalise(vector: { x: number; y: number; }): { x: number; y: number; }; export declare function getPointAtDistance(vector: { x: number; y: number; }, firstPoint: { x: number; y: number; }, distance: number): { x: number; y: number; }; declare const _default: { isGerber: typeof isGerber; gerberType: typeof gerberType; includesLayer: typeof includesLayer; getModifiedGerber: typeof getModifiedGerber; includesLayers: typeof includesLayers; getExtension: typeof getExtension; gerberCoordinateToFloat: typeof gerberCoordinateToFloat; floatToGerberCoordinate: typeof floatToGerberCoordinate; getPcbDimensions: typeof getPcbDimensions; getGerberDimensions: typeof getGerberDimensions; getGerberDimensionsByLayer: typeof getGerberDimensionsByLayer; getGerberPanelDimensionsByLayer: typeof getGerberPanelDimensionsByLayer; separateTree: typeof separateTree; getUnitType: typeof getUnitType; distance: typeof distance; isBetween: typeof isBetween; }; export default _default;