import { type IBaseScreen } from '../../definitions';
import { type OutsideParamList } from '../../stacks/types';

export interface INewServerViewProps extends IBaseScreen<OutsideParamList, 'NewServerView'> {
	connecting: boolean;
	previousServer: string | null;
}

export interface ISubmitParams {
	fromServerHistory?: boolean;
	username?: string;
	serverUrl?: string;
}

export interface TCertificatePicker {
	connecting: boolean;
	showBottomInfo: boolean;
	previousServer: string | null;
	certificate: string | null;
	handleRemove: () => void;
	chooseCertificate: () => Promise<void>;
}
