import type { CrossLineType } from 'ag-charts-core'; import type { AgCrossLineLabelPosition } from 'ag-charts-types'; export type AnchorDirection = 1 | 0 | -1; /** * `rangeH`/`rangeV` pick the point on the cross line's bounds the label is pinned to; `labelH`/`labelV` the * side it grows to from there, `1` meaning towards the left or top and `0` centred on the point. */ export interface Anchor { rangeH: AnchorDirection; rangeV: AnchorDirection; labelH: AnchorDirection; labelV: AnchorDirection; } export interface CrossLinePlacementContext { type: CrossLineType; /** The cross line runs horizontally, i.e. it belongs to a y axis. */ horizontal: boolean; rtl: boolean; warn(message: string): void; deprecate(message: string): void; } /** The anchors to try in order; `placement` wins over the deprecated `position`, and `top` is the default. */ export declare function resolveCrossLinePlacements(placement: string | readonly string[] | undefined, position: AgCrossLineLabelPosition | undefined, context: CrossLinePlacementContext): Anchor[];