import { DimensionType, type Item } from './field';
export type ResultValue = {
    raw: unknown;
    formatted: string;
};
export declare const isResultValue: (value: unknown) => value is {
    value: ResultValue;
};
export declare function convertItemTypeToDimensionType(item: Item): DimensionType;
/**
 * Metadata for period-over-period comparison columns.
 * This allows the frontend to identify PoP columns without string matching.
 */
export type PopColumnMetadata = {
    /** The field ID of the base metric this PoP column compares against */
    baseFieldId: string;
};
export type ResultColumn = {
    reference: string;
    type: DimensionType;
    /**
     * Present when this column is a period-over-period comparison column.
     * Contains metadata linking this column to its base metric.
     */
    popMetadata?: PopColumnMetadata;
};
export type ResultColumns = Record<string, ResultColumn>;
export type ResultRow = Record<string, {
    value: ResultValue;
}>;
type RawResultValue = unknown;
export type RawResultRow = Record<string, RawResultValue>;
export declare const isRawResultRow: (value: unknown) => value is RawResultValue;
export {};
//# sourceMappingURL=results.d.ts.map