import { Rebulk } from 'rebulk-js'; import { AdvancedConfig } from './rules/index.js'; import { RawOptions } from './options.js'; import { GuessItResult } from './schema.js'; export type { GuessItResult, GuessitLanguage, PropertySchema } from './schema.js'; export { GUESSIT_SCHEMA } from './schema.js'; export declare class GuessItException extends Error { string: string; options: Record; constructor(string: string, options: Record, cause?: unknown); } export declare class GuessItApi { private _rebulk; private _config; private _loadConfigOptions; private _advancedConfig; reset(): void; configure(options?: RawOptions, rulesBuilder?: (config: AdvancedConfig) => Rebulk, force?: boolean, sanitizeOptions?: boolean): Record; guessit(string: string, options?: RawOptions): GuessItResult; properties(options?: RawOptions): Record; suggestedExpected(titles: string[], options?: RawOptions): string[]; } /** Default singleton API instance */ export declare const defaultApi: GuessItApi; /** * Guess metadata from a filename or release name. */ export declare function guessit(string: string, options?: RawOptions): GuessItResult; /** * Get all properties that can be detected. */ export declare function properties(options?: RawOptions): Record; /** * Configure the default API instance. */ export declare function configure(options?: RawOptions, rulesBuilder?: (config: AdvancedConfig) => Rebulk, force?: boolean): void; /** * Reset the default API instance. */ export declare function reset(): void;