import type { TargetInput } from './assessment.js'; import { type Graph } from './graph.js'; import type { ObserveOptions, OperationSources } from './operation.js'; import type { FormatId } from '../format-contract.js'; export interface ParseOptions extends ObserveOptions { readonly cwd?: string; readonly registry?: string; readonly sources?: Pick; readonly manifests?: Readonly>; } export interface StringifyOptions extends ObserveOptions { readonly strict?: boolean; readonly lineEnding?: 'lf' | 'crlf'; readonly sources?: Pick; } export declare function detect(input: string): FormatId | undefined; export declare function check(input: string, format: FormatId): boolean; export declare function parse(input: string, format?: FormatId, options?: ParseOptions): Graph; export declare function stringify(graph: Graph, target: TargetInput, options?: StringifyOptions): string;