import { ContextMap } from "./Context.js"; import ContextProvider from "./ContextProvider.js"; /** * DotfileContextProvider is a ContextProvider that reads context overrides from * a local .mw-context.json file; it looks for the file in the current working * directory or any of its parent directories. * * The file format is a simple JSON object mapping context keys to string * values, e.g.: * * ```json * { * "project-id": "p-xxxxx", * "server-id": "s-xxxxx" * } * ``` */ export default class DotfileContextProvider implements ContextProvider { readonly name = "dotfile"; getOverrides(): Promise; /** * Find the .mw-context.json file in the current working directory or any of * its parent directories. */ private findDotfile; }