import { Dictionary } from '@stoplight/types'; import { IPluginEvent, IPluginTask } from '../..'; import { ISourceNodeInstance, Specs } from '../../graph'; import { GraphiteEvent } from '../../notifier'; import { IDeserializeSourceNode, ISerializeSourceNode } from '../../scheduler'; import { AbstractLifecyclePlugin } from '../abstract-lifecycle'; import { StoplightConfig } from './types'; import { mergeConfig } from './utils/mergeConfig'; export { DEFAULT_CONFIG, DEFAULT_PATHS, STOPLIGHT_CONFIG_PATH, STOPLIGHT_CONFIG_PLUGIN_ID } from './consts'; export { mergeFormats } from './utils/mergeFormats'; export { mergeConfig }; export * from './types'; export declare type StoplightConfigProps = { cwd: string; readFile: typeof import('fs').promises.readFile; defaultConfig?: StoplightConfig; }; export declare const createStoplightConfigPlugin: (props: StoplightConfigProps) => StoplightConfigPlugin; export declare class StoplightConfigPlugin extends AbstractLifecyclePlugin { readonly id = "STOPLIGHT_CONFIG"; private readonly cwd; private readonly uri; private readonly readFile; private readonly defaultConfig; private config?; private fileContents?; private fileError?; private readonly selector; private paths?; constructor({ cwd, readFile, defaultConfig }: StoplightConfigProps); protected readonly specProvider: { path: RegExp; spec: Specs; }; protected doActivate(): Promise; protected doDeactivate(): Promise; protected readonly tasks: [IPluginTask, IPluginTask]; protected readonly events: [IPluginEvent]; getNodes(): import("../..").NodeInstance[]; createFilter(paths?: Dictionary, cache?: WeakMap | null): (node: import("../..").NodeInstance) => boolean; getPaths(): Dictionary; getConfig(): StoplightConfig; }