import type { Channel, CartesianChartMark, CartesianScaleBindings, ChartKey, ChartMark, ChartMarkMotionOptions, ChartMarkState, ChartTextStateStyle, ChartValue, OptionChannelOutput, VisualChannel } from './types.js'; export type TextAnchor = 'start' | 'middle' | 'end'; export interface TextOptions extends ChartMarkMotionOptions, CartesianScaleBindings { id?: string; x?: Channel; y?: Channel; text?: Channel; z?: Channel; color?: Channel; key?: Channel; fill?: VisualChannel; fontSize?: number; fontWeight?: number; anchor?: VisualChannel; rotate?: VisualChannel; dx?: VisualChannel; dy?: VisualChannel; states?: readonly ChartMarkState>[]; } export declare function text(source: Iterable): ChartMark; export declare function text> | undefined>(source: Iterable, options: TOptions): CartesianChartMark, OptionChannelOutput, OptionChannelOutput, OptionChannelOutput, TOptions>;