import type fs from 'fs/promises'; import os from 'os'; import path from 'path'; import type stylelint from 'stylelint'; import type { Connection } from 'vscode-languageserver'; import * as LSP from 'vscode-languageserver-protocol'; import type { TextDocument } from 'vscode-languageserver-textdocument'; import { URI } from 'vscode-uri'; import { type LintDiagnostics, type MultiFileLintDiagnostics, type RunnerOptions, type StylelintResolutionResult } from '../../stylelint/types.js'; import { LoggingService } from '../infrastructure/logging.service.js'; import { PackageRootService } from './package-root.service.js'; import { StylelintOptionsService } from './stylelint-options.service.js'; import { WorkspaceFolderService } from '../workspace/workspace-folder.service.js'; import { WorkspaceStylelintService } from './workspace-stylelint.service.js'; /** * Runs Stylelint in VS Code. */ export declare class StylelintRunnerService { #private; constructor(osModule: typeof os, pathModule: typeof path, uriModule: typeof URI, fsModule: Pick, connection: Connection, loggingService: LoggingService, workspaceService: WorkspaceStylelintService, workspaceFolderService: WorkspaceFolderService, optionsBuilder: StylelintOptionsService, packageRootFinder: PackageRootService); /** * Lints the given document using Stylelint. The linting result is then * converted to LSP diagnostics and returned. * @param document * @param linterOptions * @param extensionOptions */ lintDocument(document: TextDocument, linterOptions?: stylelint.LinterOptions, runnerOptions?: RunnerOptions): Promise; /** * Lint all files in a workspace folder. * @param workspaceFolder Absolute path to the workspace folder. * @param runnerOptions Extension options derived from settings. */ lintWorkspaceFolder(workspaceFolder: string, runnerOptions?: RunnerOptions): Promise; resolve(document: TextDocument, runnerOptions?: RunnerOptions): Promise; resolveConfig(document: TextDocument, runnerOptions?: RunnerOptions): Promise; handleDocumentOpened(document: TextDocument): Promise; notifyWorkspaceActivity(workspaceFolder: string): void; handleWatchedFilesChanged(changes: LSP.FileEvent[]): void; disposeWorkspace(workspaceFolder: string): void; dispose(): void; }