import { type Lint, type Parser } from 'writinglint-core'; import { type InputKind } from './extract.js'; import { type ModelOptions } from './model.js'; import { type RulepackName } from './profiles.js'; export type MinimumLevel = 'info' | 'warning' | 'error'; export interface SlopSiftOptions extends ModelOptions { /** Supply a parser in tests or alternate hosts. The default is the local ONNX parser. */ parser?: Parser; } export interface LintSourceOptions { /** Minimum confidence-derived level to return. */ level?: MinimumLevel; /** Emit an informational diagnostic when a supported source has no prose. */ reportEmpty?: boolean; /** Rulepacks to run. Defaults to SlopSift's AI-style pack. */ rulepacks?: readonly RulepackName[]; } export interface SlopSiftResult { kind: InputKind; lints: Lint[]; /** Words in the extracted prose/comments that were actually analyzed. */ wordCount: number; } /** * In-process SlopSift API for editor extensions and other local integrations. * A single instance reuses its parser sessions across documents. */ export declare class SlopSift { private readonly linter; constructor(parser: Parser); supports(filePath: string): boolean; lintSource(filePath: string, source: string, options?: LintSourceOptions): Promise; } /** Load SlopSift's local parser and return a reusable in-process linter. */ export declare function createSlopSift(options?: SlopSiftOptions): Promise; export { DEFAULT_EXTENSIONS, extractInput, extractLintText, inputKind } from './extract.js'; export type { ExtractedInput, InputKind } from './extract.js'; export type { ModelOptions } from './model.js'; export type { RulepackName } from './profiles.js';