import { TextStream } from './text-stream'; /** * Provides access to all the properties of a file. * * @see https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/file-object */ export declare class File { private readonly path; constructor(path: string); /** * Opens a specified file and returns a TextStream object that can be used to read from, write to, or append to the file. * @param mode Indicates input/output mode. Can be one of three constants: ForReading, ForWriting, or ForAppending. * @param format One of three Tristate values used to indicate the format of the opened file. If omitted, the file is opened as ASCII. * @see https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/openastextstream-method */ OpenAsTextStream(mode: number, tristate?: number): TextStream; }