pub fn thread_withdraw( ctx: Context<'_, '_, '_, '_, ThreadWithdraw<'_>>, amount: u64, ) -> Result<()>