import { FieldDefBase, FieldRefOption, OrderFieldDef, TypedFieldDef } from '../channeldef'; import { Config, StyleConfigIndex } from '../config'; import { MarkConfig, MarkDef } from '../mark'; import { SortFields } from '../sort'; import { TimeUnit } from '../timeunit'; import { VgEncodeEntry } from '../vega.schema'; import { AxisComponentProps } from './axis/component'; import { Explicit } from './split'; import { UnitModel } from './unit'; export declare function applyMarkConfig(e: VgEncodeEntry, model: UnitModel, propsList: (keyof MarkConfig)[]): VgEncodeEntry; export declare function getStyles(mark: MarkDef): string[]; export declare function getMarkPropOrConfig

(channel: P, mark: MarkDef, config: Config): MarkConfig[P]; /** * Return property value from style or mark specific config property if exists. * Otherwise, return general mark specific config. */ export declare function getMarkConfig

(channel: P, mark: MarkDef, config: Config, { vgChannel }?: { vgChannel?: any; }): MarkConfig[P]; export declare function getStyleConfig

(prop: P, mark: MarkDef, styleConfigIndex: StyleConfigIndex): any; export declare function formatSignalRef(fieldDef: TypedFieldDef, specifiedFormat: string, expr: 'datum' | 'parent' | 'datum.datum', config: Config): { signal: string; }; /** * Returns number format for a fieldDef */ export declare function numberFormat(fieldDef: TypedFieldDef, specifiedFormat: string, config: Config): string; export declare function numberFormatExpr(field: string, specifiedFormat: string, config: Config): string; export declare function binFormatExpression(startField: string, endField: string, format: string, config: Config): string; /** * Returns the time expression used for axis/legend labels or text mark for a temporal field */ export declare function timeFormatExpression(field: string, timeUnit: TimeUnit, format: string, shortTimeLabels: boolean, rawTimeFormat: string, // should be provided only for actual text and headers, not axis/legend labels isUTCScale: boolean, alwaysReturn?: boolean): string; /** * Return Vega sort parameters (tuple of field and order). */ export declare function sortParams(orderDef: OrderFieldDef | OrderFieldDef[], fieldRefOption?: FieldRefOption): SortFields; export declare type AxisTitleComponent = AxisComponentProps['title']; export declare function mergeTitleFieldDefs(f1: FieldDefBase[], f2: FieldDefBase[]): FieldDefBase[]; export declare function mergeTitle(title1: string, title2: string): string; export declare function mergeTitleComponent(v1: Explicit, v2: Explicit): { explicit: boolean; value: FieldDefBase[]; } | { explicit: boolean; value: string; }; //# sourceMappingURL=common.d.ts.map