/** * Style selection prompt for citation style selection. * * Lists built-in styles and custom styles from csl_directory, * with the default style shown first. */ import { type SelectOption } from "./components/index.js"; /** * Options for style selection */ export interface StyleSelectOptions { /** Directory or directories containing custom CSL files */ cslDirectory?: string | string[]; /** Default style to show first */ defaultStyle?: string; } /** * Result from style selection */ export interface StyleSelectResult { /** Selected style name */ style?: string; /** Whether the selection was cancelled */ cancelled: boolean; } /** * List custom CSL style names from the specified directory/directories. * * @param cslDirectory - Directory or directories to search for CSL files * @returns Array of style names (without .csl extension) */ export declare function listCustomStyles(cslDirectory: string | string[] | undefined): string[]; /** * Build style choices for the selection prompt. * * @param customStyles - Custom style names from csl_directory * @param defaultStyle - Default style to show first * @returns Array of SelectOption for Ink Select prompt */ export declare function buildStyleChoices(customStyles: string[], defaultStyle?: string): SelectOption[]; /** * Run the style selection prompt. * * @param options - Style selection options * @returns Selection result with style name */ export declare function runStyleSelect(options: StyleSelectOptions): Promise; //# sourceMappingURL=style-select.d.ts.map