import type { Book, LibraryInfo, SearchCallback, SearchOptions, SearchResult } from "./types"; /** * Strip HTML tags from a string. Returns empty string for nullish input. */ export declare function stripHtml(str: string | undefined | null): string; /** * Print book list as formatted JSON to console. */ export declare function printBookList(booklist: Book[]): void; /** * Print total book count and current page information. */ export declare function printTotalBookCount(book: SearchResult): void; /** * Convert comma separated strings to Array. */ export declare function getArrayFromCommaSeparatedString(libs: string | undefined | null): string[]; /** * Extract library names from a library list. */ export declare function getLibraryNames(lst: LibraryInfo[]): string[]; /** * Create a library code lookup function for a given library list. * Factory pattern to avoid duplicating getLibraryCode() in each module. */ export declare function createLibraryCodeLookup(libraryList: LibraryInfo[]): (libraryName: string) => string; /** * Extract the first number from a string. * Useful for parsing count values from text like "총 123건". */ export declare function extractNumber(text: string | undefined | null, defaultValue?: string): string; /** * Validate search options. Throws an error if validation fails. */ export declare function validateSearchOptions(opt: SearchOptions): void; /** * Wrap an async function to support both Promise and callback patterns. * Callback follows Node.js convention (err, result) for backward compatibility with older consumers. */ export declare function wrapWithCallback(asyncFn: (opt: T) => Promise): (opt: T, callback?: SearchCallback) => Promise; //# sourceMappingURL=util.d.ts.map