import { Config } from '../types/config'; import { DocumentConfig } from '../types/document-config'; import { OperationResponse } from '../types/operation-response'; import { Project } from '../types/project'; interface FormatOptions { 'order-by': string; } export default class Document { paths: string[]; readonly apiKey: string; readonly apiUrl: string; readonly extraHeaders: Record; readonly projectId: string | null | undefined; readonly config: DocumentConfig; readonly target: string; constructor(documentConfig: DocumentConfig, config: Config); refreshPaths(): void; format(file: string, language: string, options: FormatOptions): Promise; lint(file: string, language: string): Promise; sync(project: Project, file: string, options: any): Promise; addTranslations(file: string, language: string, documentPath: string, options: any): Promise; fetchLocalFile(documentPath: string, localPath: string): string; export(file: string, language: string, documentPath: string, options: any): Promise; exportJipt(file: string, documentPath: string): Promise; parseDocumentName(file: string, config: DocumentConfig): string; private createFileFromStream; private encodeQuery; private authorizationHeader; private resolveNamePattern; private writeResponseToFile; private handleResponse; } export {};