interface Info { config: Config; } interface Config { format: string | undefined; open: boolean; port: number; elmFormatPath: string; } export interface DependencyPointer { name: string; version: string; } export interface DependencyStore { dependency: DependencyPointer; content: string; } export interface HttpDocumentationLoad { dependency: DependencyPointer; json: any; } export interface RawDependencyLoad { dependency: DependencyPointer; json: JSON | null; } export interface DependencyFiles { dependency: DependencyPointer; files: FileContent[]; } export interface FileChange { event: string; file: string; content: string | null; } export interface FileStore { file: string; newContent: string; } export interface AstStore { sha1: string; ast: JSON; } export interface FixedFile { path: string; content: string; } export interface LogMessage { level: string; message: string; } interface ElmApp { ports: { log: Subscription; sendReportValue: Subscription; sendState: Subscription; sendFixedFile: Subscription; loadContext: Subscription; loadDependencyFiles: Subscription; loadFile: Subscription; storeAstForSha: Subscription; storeFile: Subscription; loadFileContentWithSha: Subscription; loadHttpDocumentation: Subscription; storeRawDependency: Subscription; loadRawDependency: Subscription; fileWatch: MailBox; onReset: MailBox; onFixMessage: MailBox; onFixQuick: MailBox; onLoadedContext: MailBox; onDependencyFiles: MailBox; fileContent: MailBox; onStoredFiles: MailBox; onFileContentWithShas: MailBox; onHttpDocumentation: MailBox; onRawDependency: MailBox; }; } interface EditorData { progress: string; files: { [key: string]: EditorMessage[]; }; } interface EditorMessage { severity: string; location: { file: string; position: Array>; }; excerpt: string; description: string; } interface EditorElmApp { ports: { stateListener: MailBox; editorMessages: Subscription; }; } interface Subscription { subscribe: (cb: (d: T) => void) => void; unsubscribe: (cb: (d: T) => void) => void; } interface FileContentSha { file: { version: string | null; path: string; }; content: string | null; } interface Context { sourceFiles: string[]; interfaceFiles: Array; configuration: string; } interface MailBox { send: (d: T) => void; } interface Reporter { report: (r: Report) => void; } interface Report { messages: Message[]; unusedDependencies: string[]; } interface FileContent { path: string; success: boolean; sha1: string | null; content: string | null; ast: string | null; } interface State { status: string; idCount: number; queue: any[]; messages: any[]; modules: any[]; } interface FileRef { version: string; path: string; } interface Message { id: number; status: string; file: string; type: string; data: MessageData; } interface MessageData { description: string; properties: { [key: string]: any }; } export { Config, ElmApp, FileContent, Report, State, Info, Message, Reporter, Context, FileContentSha, EditorElmApp, EditorMessage, EditorData };