import type { EmbeddedSpreadsheetOptions } from '../options'; import type { EmbeddedSpreadsheet } from '../embedded-spreadsheet'; /** * API class for creating spreadsheets. this is intended as a singleton, * we will export an instance of the class. */ export declare class TREBGlobal { /** * Package version * * @privateRemarks * * we know this string won't be undefined at run time, but ts doesn't know * because we're using process.env as a placeholder. so we add the default * empty string to force type generation as a string, otherwise it would * be string|undefined. * * esbuild (or any other compiler) should remove the default value after * building so it won't cost us anything. */ version: string; /** * Create a spreadsheet. The `USER_DATA_TYPE` template parameter is the type * assigned to the `user_data` field of the spreadsheet instance -- it can * help simplify typing if you are storing extra data in spreadsheet * files. * * Just ignore this parameter if you don't need it. * * @typeParam USER_DATA_TYPE - type for the `user_data` field in the * spreadsheet instance */ CreateSpreadsheet(options: EmbeddedSpreadsheetOptions): EmbeddedSpreadsheet; } /** single instance of factory class */ export declare const TREB: TREBGlobal;