export declare function updateSettings(updates: ClappSettings): void; /** * Check if a key is an alias for a default action * @param key - The raw key which might match to an action * @param action - The action to match * @returns boolean */ export declare function isActionKey(key: string | Array, action: Action): boolean; declare const actions: Action[]; export declare const settings: InternalClappSettings; /** Global settings for Clapp programs, stored in memory */ declare interface InternalClappSettings { actions: Set aliases: Map messages: { cancel: string error: string } } export declare interface ClappSettings { aliases?: Record messages?: { cancel?: string error?: string } } export type Action = 'up' | 'down' | 'left' | 'right' | 'space' | 'enter' | 'cancel';