import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";

import { registerAskUserTool } from "./src/tool.ts";

export default function askUserExtension(pi: ExtensionAPI): void {
  registerAskUserTool(pi);
}

export { formatAnswers, normalizeQuestions, orderedAnswers } from "./src/normalize.ts";
export type {
  AskUserResult,
  NormalizedQuestion,
  QuestionInput,
  QuestionOptionInput,
  QuestionType,
  UserAnswer,
} from "./src/types.ts";
