@capgo/cli
Version:
A CLI to upload to capgo servers
17 lines (16 loc) • 866 B
TypeScript
export declare const MIN_COLS = 80;
export declare const IOS_MIN_ROWS = 38;
export declare const ANDROID_MIN_ROWS = 49;
export declare const MIN_ROWS: number;
/** The full-onboarding row floor for a given platform. */
export declare function onboardingMinRows(platform: 'ios' | 'android'): number;
/**
* True when the given terminal size can run a platform's onboarding without a
* mid-flow resize. `platform` defaults to the conservative 'android' (larger)
* floor for platform-agnostic callers.
*/
export declare function terminalFitsOnboarding(cols: number, rows: number, platform?: 'ios' | 'android'): boolean;
export declare const PICKER_MIN_COLS = 44;
export declare const PICKER_MIN_ROWS = 11;
/** True when the terminal can render the platform picker (banner + picker). */
export declare function terminalFitsPicker(cols: number, rows: number): boolean;