/** * CLI Helper Functions * Extracted for better testability * * @requirement REQ-CLI-001 */ import type { Content } from './index.js'; /** * CLI用にContentオブジェクトを作成 */ export declare function createContent(title: string, body: string, url?: string): Content; /** * 出力フォーマット検証 */ export declare function isValidFormat(format: string): format is 'json' | 'text'; /** * 検索プロバイダー検証 */ export declare function isValidProvider(provider: string): provider is 'duckduckgo' | 'searxng'; /** * 数値オプションのパース */ export declare function parseNumberOption(value: string, defaultValue: number): number; /** * テキスト出力のフォーマット */ export declare function formatSearchResult(result: { title: string; url: string; snippet?: string; }): string; /** * エラーメッセージのフォーマット */ export declare function formatError(error: unknown): string; /** * テキストを省略表示 */ export declare function truncateText(text: string, maxLength: number): { text: string; omitted: number; }; //# sourceMappingURL=cli-helpers.d.ts.map