pr-desc-cli
Version:
AI-powered PR description generator
9 lines (8 loc) • 343 B
TypeScript
/**
* Masks the middle part of an API key, showing only the first and last 4 characters.
* @param apiKey The API key to mask.
* @param visibleChars The number of characters to show at the start and end of the API key.
*
* @returns The masked API key.
*/
export declare function maskApiKey(apiKey: string, visibleChars?: number): string;