import type DataProvider from '../dataProvider'; /** * @private */ declare class BaseType { /** * Default options. * * @returns {object} */ static get DEFAULT_OPTIONS(): Record; /** * Whether the format produces binary (asynchronous) output. * * @returns {boolean} */ get binary(): boolean; /** * Type predicate: narrows this formatter to a binary (asynchronous) one. * * @returns {boolean} */ isBinary(): this is BaseType & { binary: true; export(): Promise; }; /** * Type predicate: narrows this formatter to a text (synchronous) one. * * @returns {boolean} */ isText(): this is BaseType & { binary: false; export(): string; }; /** * Performs the actual export and returns the data as a string or a Promise. */ export(): string | Promise; /** * Data provider. * * @type {DataProvider} */ dataProvider: DataProvider; /** * Format type class options. * * @type {object} */ options: Record; /** * Initializes the export type with the data provider and merges the given options with the class defaults. */ constructor(dataProvider: DataProvider, options: Record); /** * Merge options provided by users with defaults. * * @param {object} options An object with options to merge with. * @returns {object} Returns new options object. */ _mergeOptions(options: Record): Record; } export default BaseType;