import { GerberData } from '../index'; import { ChildNode, Coordinates, Format, Root, ZeroSuppression, } from '@tracespace/parser'; export declare function isGerber(fileData: string): boolean; 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, ): 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; 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; }; export default _default;