/** * @typedef {object} AlternativeService * @property {function(object):Promise} initialize Initializes the service and prepares the alternative dimensions and measures. * @property {function():object} getAlternatives Gets an object containing the alternative dimensions and measures. */ /** * Creates an alternative-service. * * @param {object} args Arguments object. * @param {object} args.app App instance. * @param {object} args.translator Translator instance. * * @returns {AlternativeService} The created alternative-service. * * @example * * const service = createAlternativeService({ app, translator }); * * await service.initialize({ properties }); * * service.getAlternatives(); * // => { dimensions: [{ id: 'cArn', text: 'Dim1' }, { id: 'voRa', text: 'Dim2' }], measures: [] } */ export default function createAlternativeService({ app, translator }: { app: object; translator: object; }): AlternativeService; export type AlternativeService = { /** * Initializes the service and prepares the alternative dimensions and measures. */ initialize: (arg0: object) => Promise; /** * Gets an object containing the alternative dimensions and measures. */ getAlternatives: () => object; };