export declare enum LocatorType { CSS = "css", XPATH = "xpath", ID = "id" } export declare enum CorrectionType { MINUS = "minus", PLUS = "plus", EQUALS = "equals" } export interface Correction { value: number; type: CorrectionType; } export interface CorrectionsRect { left?: Correction; top?: Correction; width?: Correction; height?: Correction; } export declare function applyCorrection(correction: Correction | undefined, original: number): number; export declare class Locator { readonly locatorType: LocatorType; readonly locatorValue: string; readonly corrections?: CorrectionsRect | undefined; readonly index: number; readonly parent?: Locator | undefined; constructor(locatorType: LocatorType, locatorValue: string, corrections?: CorrectionsRect | undefined, index?: number, parent?: Locator | undefined); static css(value: string): Locator; static xpath(value: string): Locator; static id(value: string): Locator; withCorrections(corrections: CorrectionsRect): Locator; withIndex(index: number): Locator; withParent(parent: Locator): Locator; prettyString(): string; toPlaywrightSelector(): string; toString(): string; } //# sourceMappingURL=locator.d.ts.map