import { C as CompileSharedType, b as IssueType, I as InkHashtagCommandInfo, H as HashtagCommandOccurrence } from './types-2rYZij6C.cjs';
export { a as InkValidationInfo } from './types-2rYZij6C.cjs';
import 'inkjs/engine/Error';

declare namespace InkCompiler {
    function compile(text: string, shared?: Omit<CompileSharedType, "textSource">): {
        json: string;
        issues: IssueType[];
    } | {
        issues: IssueType[];
        json?: undefined;
    };
    function getErrors(issues: IssueType[], recompile: () => void, shared: CompileSharedType): void | {
        issues: IssueType[];
    };
    /**
     * Returns all hashtag commands in `source` that are not matched by any
     * entry in `commands`.
     *
     * A command is considered "unknown" when none of the registered
     * {@link InkHashtagCommandInfo} validations match its token list.
     *
     * @param source   Raw Ink source text to scan.
     * @param commands List of known command descriptors (e.g. obtained from
     *                 `GET /__pixi-vn-ink/hashtag-commands` or registered
     *                 directly in a VS Code extension).
     * @returns        Array of unrecognised {@link HashtagCommandOccurrence}
     *                 objects, each carrying the 1-based `line`, the raw
     *                 `command` string, and the parsed `tokens`.
     */
    function getUnknownHashtagCommands(source: string, commands: InkHashtagCommandInfo[]): HashtagCommandOccurrence[];
}

export { HashtagCommandOccurrence, InkCompiler, InkHashtagCommandInfo };
