import type { Formatter, RichFormatter, TextOrSegments, TextValue } from 'ag-charts-community';
interface Ctx {
    chartService: {
        context?: unknown;
    };
}
export declare function formatWithContext<P>(ctx: Ctx, formatter: Formatter<P>, params: P): TextValue | undefined;
export declare function formatWithContext<P>(ctx: Ctx, formatter: RichFormatter<P>, params: P): TextOrSegments | undefined;
export {};
